Skip to content
Snippets Groups Projects
Commit 5e3c1380 authored by Thomas Lefebvre (thle)'s avatar Thomas Lefebvre (thle)
Browse files

[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: default avatarSofie Gvaladze (sgv) <sgv@odoo.com>
parent 106f95d1
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment