From ada1da9a0cea6aaa3f91ee34fd3b273be79e1e3d Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 1 Feb 2021 09:07:01 +0000 Subject: [FIX] hr_holidays: include time in demo data All fields not provided default to 0, so the the exact values are `%Y-%m-20 00:00:00` - `%Y-%m-22 00:00:00`. Because this is only 2 days it can entirely overlap with a week-end (e.g. 2021-02-20/21), leading to `number_of_days` computed to 0 and triggering an error at confirmation (`"The following employees are not supposed to work during that period"`). Change familly trip as the same issue would occure in May 2021 closes odoo/odoo#65314 Signed-off-by: Martin Trigaux (mat) --- addons/hr_holidays/data/hr_holidays_demo.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'addons/hr_holidays') diff --git a/addons/hr_holidays/data/hr_holidays_demo.xml b/addons/hr_holidays/data/hr_holidays_demo.xml index 33f3d007fcb..ae1efa8c0f4 100644 --- a/addons/hr_holidays/data/hr_holidays_demo.xml +++ b/addons/hr_holidays/data/hr_holidays_demo.xml @@ -62,10 +62,10 @@ Trip with Family - - - - + + + + 10 @@ -80,10 +80,10 @@ Doctor Appointment - - - - + + + + 3 confirm -- cgit v1.2.3