Hello Odoo Community,
I'm facing an issue with the Payroll and Attendance modules, where payslip calculations for hourly wage employees are incorrect under certain conditions. Any advice or insights from those who have encountered similar issues would be greatly appreciated.
Problem Details:
- Unexpected Calculation Without Attendance Data:
When generating a payslip for an employee with an hourly wage, the system calculates an amount based on their hourly rate, even if no attendance entries exist in the Worked Days & Inputs tab. In the Salary Computation tab, the system seems to default to multiplying the hourly rate by a quantity of 1, despite no data reflecting actual worked days or hours. - Issue After Deleting Attendance Records:
Additionally, if attendance records are initially present but then deleted from the Attendance app, recomputing the payslip does not clear the amount in the Salary Computation tab, even though Worked Days & Inputs reflects no attendance data. Deleting and regenerating the payslip for the same employee also results in this behavior, with an hourly rate still appearing in the Salary Computation tab.
Impact:
This issue is preventing us from accurately calculating payslips . We've confirmed this behavior on Odoo's runbot and demo databases as well.
Environment Details:
- Odoo version: 17 ( but also tested on previous versions like v16 still getting the same thing
- Module versions: payroll
If anyone has encountered this issue or has insights on possible configuration adjustments to ensure accurate hourly wage calculations based on attendance data, please share your thoughts.
Thank you very much for your assistance!