Files
odoo_source/addons/hr_holidays_attendance
Dawn Hwang 6cb886efc0 [FIX] hr_holidays_attendance: Fix time off overtime duration check
Currently when a time off using an overtime is written to for any
reason, it will compare the duration of the overtime with the
number_of_hours_display. However, the duration check will always be
triggered since overtime duration is number_of_hours_display * -1

This causes problems if an overtime time off is modified for any reason
and the employee does not have enough total_overtime

closes odoo/odoo#160381

X-original-commit: 1c477259d08995d1b0bfe8ebd551452073e0c03b
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2024-04-05 07:20:47 +00:00
..
…