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
..
2020-01-08 10:39:12 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-10-10 14:28:09 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2019-12-16 15:10:24 +00:00
2019-12-12 12:30:48 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 10:00:18 +00:00
2019-12-16 15:10:24 +00:00
2019-10-07 09:11:11 +02:00
2019-12-16 12:49:55 +00:00
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2020-01-07 14:53:42 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2020-01-02 13:31:09 +00:00
2019-12-20 11:16:01 +00:00
2019-12-23 15:57:36 +00:00
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2019-12-17 07:03:32 +00:00
2019-12-10 10:00:18 +00:00
2019-12-16 12:49:55 +00:00
2020-01-07 11:10:41 +00:00
2019-12-09 10:33:36 +00:00
2019-12-20 12:47:11 +00:00
2019-12-09 10:33:36 +00:00
2019-12-20 09:09:12 +01:00
2019-10-07 09:11:11 +02:00
2019-12-16 12:49:55 +00:00
2019-12-09 10:38:59 +00:00
2020-01-08 09:11:51 +00:00
2020-01-08 09:11:50 +00:00
2019-12-12 06:24:35 +00:00
2019-12-16 15:10:24 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 15:10:24 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 14:47:32 +00:00
2019-12-16 15:10:24 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2020-01-02 17:53:36 +00:00
2020-01-08 11:52:59 +00:00
2019-12-04 12:01:16 +00:00
2019-12-31 04:36:00 +00:00
2019-12-10 10:00:18 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 15:10:24 +00:00
2020-01-08 17:09:07 +00:00
2019-12-16 12:49:55 +00:00
2019-12-19 17:24:31 +00:00
2019-12-09 10:38:59 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2020-01-08 13:26:03 +00:00
2020-01-08 13:26:03 +00:00
2020-01-08 13:26:03 +00:00
2020-01-06 10:35:46 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-10-22 18:19:39 +00:00
2020-01-06 13:54:07 +00:00
2019-12-10 10:00:18 +00:00
2019-12-05 11:16:20 +00:00
2019-10-03 12:48:09 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 15:10:24 +00:00
2019-10-07 09:11:11 +02:00
2019-12-09 10:33:36 +00:00
2019-11-29 20:47:29 +00:00
2020-01-08 17:05:57 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2019-12-04 08:37:19 +00:00
2019-11-22 14:58:35 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2019-12-05 16:16:30 +00:00
2019-12-04 17:21:15 +00:00
2020-01-02 12:09:30 +00:00
2019-10-11 17:07:15 +00:00
2019-12-09 10:33:36 +00:00
2019-12-04 08:37:19 +00:00
2019-12-04 08:37:19 +00:00
2019-11-28 13:39:09 +00:00
2019-11-29 20:47:29 +00:00
2019-12-18 08:46:59 +00:00
2019-11-29 20:47:29 +00:00
2019-11-19 16:08:16 +00:00
2019-12-04 08:37:19 +00:00
2019-12-16 15:10:24 +00:00
2019-10-01 10:02:50 +00:00
2019-12-04 08:37:19 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2019-12-04 08:52:37 +00:00
2019-10-23 15:56:04 +00:00
2020-01-06 08:26:28 +00:00
2019-10-18 07:20:30 +00:00
2019-09-27 11:39:39 +00:00
2019-09-27 11:39:39 +00:00
2019-09-27 11:39:39 +00:00
2019-09-27 11:39:39 +00:00
2019-11-25 14:35:01 +00:00
2020-01-02 15:44:15 +00:00
2019-11-29 20:47:29 +00:00
2019-12-10 10:00:18 +00:00
2020-01-08 17:05:57 +00:00
2019-10-23 15:56:04 +00:00
2019-12-04 08:37:19 +00:00
2019-11-29 20:47:29 +00:00
2019-10-23 17:37:41 +00:00
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2019-12-02 12:08:18 +00:00
2019-12-23 14:11:59 +00:00
2019-12-23 14:40:15 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2019-11-29 20:47:29 +00:00
2020-01-02 14:19:36 +00:00
2019-11-29 20:47:29 +00:00
2019-12-16 12:49:55 +00:00
2019-12-31 14:35:59 +00:00
2020-01-06 14:37:16 +00:00
2019-12-09 10:33:36 +00:00
2019-12-16 15:10:24 +00:00
2019-12-30 16:46:56 +00:00
2019-12-16 12:49:55 +00:00
2020-01-08 09:11:50 +00:00
2020-01-08 09:11:50 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 15:58:16 +00:00
2019-12-16 15:58:16 +00:00
2020-01-06 11:25:58 +00:00
2020-01-08 09:25:37 +00:00
2020-01-02 15:48:56 +00:00
2019-12-16 12:49:55 +00:00
2020-01-02 18:11:33 +00:00
2019-10-23 07:43:01 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 10:00:18 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-12-31 09:19:34 +00:00
2019-12-10 10:00:18 +00:00
2019-10-07 09:11:11 +02:00
2019-12-10 10:00:18 +00:00
2019-12-10 10:00:18 +00:00
2019-11-28 16:34:19 +00:00
2019-12-18 07:06:31 +00:00
2019-10-07 09:11:11 +02:00
2019-10-31 12:33:56 +00:00
2019-12-10 10:00:18 +00:00
2019-12-31 09:19:34 +00:00
2019-09-30 15:11:18 +00:00
2019-12-10 10:00:18 +00:00
2019-11-22 19:41:28 +00:00
2019-12-26 13:32:38 +00:00
2019-12-24 14:31:07 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 10:00:18 +00:00
2019-10-07 09:11:11 +02:00
2019-10-07 09:11:11 +02:00
2019-10-11 08:23:24 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 10:00:18 +00:00
2020-01-07 07:25:06 +00:00
2019-10-07 09:11:11 +02:00
2019-12-16 12:49:55 +00:00
2019-12-23 09:18:16 +00:00
2019-12-10 06:35:05 +00:00
2020-01-06 19:46:05 +00:00
2019-12-16 15:10:24 +00:00
2019-12-16 12:49:55 +00:00
2020-01-08 10:44:00 +00:00
2019-11-29 14:29:58 +00:00
2020-01-06 16:23:02 +00:00
2019-12-06 14:49:38 +00:00
2019-12-09 10:33:36 +00:00
2019-12-16 15:10:24 +00:00
2019-12-16 12:49:55 +00:00
2019-12-30 15:15:00 +00:00
2019-12-16 12:49:55 +00:00
2020-01-02 14:00:01 +00:00
2019-12-10 10:00:18 +00:00
2020-01-08 14:09:39 +00:00
2020-01-06 13:55:30 +00:00
2019-12-10 10:00:18 +00:00
2020-01-07 12:09:00 +00:00
2019-12-09 11:29:18 +00:00
2019-12-19 11:22:57 +00:00
2020-01-03 12:55:07 +00:00
2020-01-07 08:49:28 +00:00
2019-12-17 08:37:23 +00:00
2019-12-16 12:49:55 +00:00
2019-12-27 11:29:00 +00:00
2020-01-06 13:53:26 +00:00
2019-12-16 15:10:24 +00:00
2019-12-30 15:12:08 +00:00
2019-12-10 16:13:29 +00:00
2020-01-06 13:36:40 +00:00
2019-12-09 10:33:36 +00:00
2019-12-16 12:49:55 +00:00
2020-01-02 15:29:43 +00:00
2019-12-09 11:09:10 +00:00
2019-12-09 10:33:36 +00:00
2019-12-16 12:49:55 +00:00
2020-01-08 15:43:14 +00:00
2020-01-07 08:13:41 +00:00
2019-12-10 10:00:18 +00:00
2020-01-07 14:47:06 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 15:52:47 +00:00
2019-11-12 09:27:51 +00:00
2019-12-02 15:18:44 +00:00
2019-11-20 16:01:08 +00:00
2019-12-16 15:58:16 +00:00
2019-11-26 14:35:46 +00:00
2019-12-05 15:21:28 +00:00
2019-10-30 12:35:23 +00:00
2019-12-16 12:49:55 +00:00
2019-11-21 15:27:10 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 09:02:53 +00:00
2019-12-23 16:06:07 +00:00
2020-01-06 14:37:16 +00:00
2019-10-07 09:11:11 +02:00
2020-01-06 13:11:10 +00:00
2019-10-07 09:11:11 +02:00
2019-12-26 09:53:20 +00:00
2019-11-22 09:19:35 +00:00
2020-01-08 14:13:36 +00:00
2020-01-08 14:12:06 +00:00
2019-12-30 10:57:31 +00:00
2019-12-16 12:49:55 +00:00
2019-12-24 13:14:42 +00:00
2019-10-08 13:50:02 +00:00
2019-12-16 12:49:55 +00:00
2020-01-08 14:13:36 +00:00
2019-12-16 15:10:24 +00:00
2020-01-08 09:11:50 +00:00
2020-01-08 09:11:51 +00:00
2019-12-30 17:06:39 +00:00
2019-10-07 09:11:11 +02:00
2019-12-31 13:25:21 +00:00
2019-12-16 12:49:55 +00:00
2019-10-18 14:59:02 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 10:00:18 +00:00
2020-01-02 15:14:47 +00:00
2019-12-30 16:09:25 +00:00
2019-12-30 16:09:25 +00:00
2019-12-31 13:25:21 +00:00
2019-12-16 12:49:55 +00:00
2019-12-17 10:30:57 +00:00
2019-12-10 10:00:18 +00:00
2019-12-16 12:49:55 +00:00
2020-01-07 14:46:05 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 15:10:24 +00:00
2019-12-16 12:49:55 +00:00
2019-12-16 12:49:55 +00:00
2019-11-05 16:18:10 +01:00
2020-01-02 15:12:48 +00:00
2019-12-17 11:03:22 +00:00
2019-12-09 10:33:36 +00:00
2020-01-07 05:21:22 +00:00
2019-12-16 12:49:55 +00:00
2020-01-03 08:35:33 +00:00
2019-12-16 12:49:55 +00:00
2019-12-10 10:00:18 +00:00