Files
odoo_source/addons
Yannick Tivisse 2bbae8e70e [FIX] hr_holidays: Fix number_of_hours_display computation
Impacted versions: 13.0

Steps to reproduce: Add employee, allocate paid leave, set leave in hours.
Standard workweek is set to 40 hours. 5 days 8h per day
Global Time off: Dec.25 00:00:00 - Dec.26 23:59:59

Employee requests one week of leave, during christmas (dec.25 and dec. 26 in the week).
Manager approves.

Current behavior:
Before approval the total hours in the request is 24. The manager approves
and the total hours change to 40. Total remaining hours is also -40.

Expected behavior:
After approval the requested hours should not change and remain 24. The
total remaining hours should also be -24.

This is a similar issue as issue #41848 which has been fixed in #42710

TaskID: 2169161

Closes #42877

closes odoo/odoo#42924

closes odoo/odoo#42983

Original-signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
X-original-commit: 11a5e3d09dd57d51813fc8151c30a619d4f368b5
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-08 17:09:07 +00:00
..
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2020-01-07 11:10:41 +00:00
2020-01-08 09:11:50 +00:00
2020-01-02 17:53:36 +00:00
2019-10-03 12:48:09 +00:00
2019-12-05 16:16:30 +00:00
2020-01-02 12:09:30 +00:00
2020-01-06 08:26:28 +00:00
2020-01-06 14:37:16 +00:00
2019-12-10 10:00:18 +00:00
2020-01-08 14:09:39 +00:00
2020-01-06 14:37:16 +00:00