CybroOdoo / OpenHRMS

GNU Affero General Public License v3.0
126 stars 214 forks source link

Payslip Generating Taking Too Long For Employees > 50 with Too Many Salary Rules #112

Open ogovekwueme opened 5 months ago

ogovekwueme commented 5 months ago

Whenever I try to generate payslips for employees while clicking on payslip Batches, it takes too long to process. The number of employees is around 230 employees with 24 salary rules. The Odoo server takes too long to process and times out. I tried to insert parameters on my odoo.conf file i.e. limit_time_real = 120 and limit_time_cpu = 60 and it still does "connection lost".

ogovekwueme commented 5 months ago

In the wizard folder, hr_payroll_community/wizard/hr_payroll_payslips_by_employees.py on line 40: payslip += self.env['hr.payslip'].create(res)

was changed to: payslip = self.env['hr.payslip'].create(res)