-
- Downloads
[FIX] hr_work_entry: fix multi calendar issue with global time off
When creating a global time off in one resource.calendar A , it will be propagated on any new resource.calendar B. However the reverse is not true, if I delete the global time off in calendar A it will not be deleted in calendar B. During the work entry generation this is not taken into account, a contract using calendar A will generate leave work entries because of the global time off in calendar B. This is due to a change in PR odoo/enterprise#15091. The domain is now correct and will only fetch the right leaves. TaskId-2627378 closes odoo/odoo#88725 X-original-commit: 0bac1d33a25e37ebece69de030b9fd72caa43a02 Signed-off-by:Kevin Baptiste <kba@odoo.com> Signed-off-by:
William Braeckman (wbr) <wbr@odoo.com>
Showing
- addons/hr_work_entry_contract/models/hr_contract.py 14 additions, 10 deletionsaddons/hr_work_entry_contract/models/hr_contract.py
- addons/hr_work_entry_contract/tests/__init__.py 1 addition, 0 deletionsaddons/hr_work_entry_contract/tests/__init__.py
- addons/hr_work_entry_contract/tests/test_global_time_off.py 38 additions, 0 deletionsaddons/hr_work_entry_contract/tests/test_global_time_off.py
- addons/hr_work_entry_holidays/models/hr_contract.py 12 additions, 0 deletionsaddons/hr_work_entry_holidays/models/hr_contract.py
Loading