Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ogovekwueme opened this issue Feb 20, 2024 · 1 comment

Comments

@ogovekwueme
Copy link

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
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant