-
- Downloads
[FIX] hr_*_attendance: correct domain to compute overtime
Versions: --------- - 15.0 - saas-15.2 Steps to reproduce: ------------------- - create an attendance of 10 hours which create 2 hours overtime; - take a time off that has "Other" for the type the same day; Issue: ------ The overtime duration is updated to 10 hours. Cause: ------ When a holiday is taken, the overtime is recalculated. In this case, we will count as if we had worked on a day when we were supposed to have time off. However, this is not the case because the type of leave is "Other". Solution: --------- Correct the domain so that only "Time Off" holidays are used and not "Other" holidays. Note: Backport of commit: 0fb62807 opw-3518374 closes odoo/odoo#137870 Signed-off-by:Sofie Gvaladze (sgv) <sgv@odoo.com>
Showing
- addons/hr_attendance/models/hr_attendance.py 6 additions, 1 deletionaddons/hr_attendance/models/hr_attendance.py
- addons/hr_holidays_attendance/models/__init__.py 1 addition, 0 deletionsaddons/hr_holidays_attendance/models/__init__.py
- addons/hr_holidays_attendance/models/hr_attendance.py 12 additions, 0 deletionsaddons/hr_holidays_attendance/models/hr_attendance.py
Loading
Please register or sign in to comment