Tuesday, December 30, 2025
1 change · 19.0
Resolved issues and error corrections
This update fixes an issue where overtime work entries were incorrectly generated when an overtime ruleset had no 'Pay Extra Hours' rules enabled. Now, work entries are only created for overtime if at least one rule in the ruleset allows for extra pay, ensuring accurate payroll calculations.
Original PR description
## Steps to Reproduce 1. Create a Overtime ruleset with **none** of the rules have "Pay Extra Hours" checked. 2. Assign this ruleset to an employee. 3. Generate attendances that normally produce overtime. 4. It will create work entries based on these attendances. Navigate to work entries in payroll. ## Issue Even when none of the rules are checked as "Pay extra hours", It will still generates overtime work entries. ## Fix Skipped work entries inside `_get_real_attendance_work_entry_vals` if there is no paid rules in a ruleset. task - [5189151](https://www.odoo.com/odoo/project/1251/tasks/5189151)