[IMP] hr_holidays: avoid taking leave only on the week-end

In demo data, Marc demo was taking a sick leave during the first and
second of the month, the problem is that when the current month starts
with a saturday this leave ends up being placed only during the
week-end hence no leave should have been taken.
In order to avoid having this weird leave, Marc demo will now take three
days of sick leave

closes odoo/odoo#34318

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
RomainLibert
2019-06-24 08:32:23 +00:00
parent 17f5fa8a3b
commit e4101e3857
+2 -2
View File
@@ -334,9 +334,9 @@
<field name="name">Sick day</field>
<field name="holiday_status_id" ref="holiday_status_sl"/>
<field eval="time.strftime('%Y-%m-1 1:0:0')" name="date_from"/>
<field eval="time.strftime('%Y-%m-1 23:0:0')" name="date_to"/>
<field eval="time.strftime('%Y-%m-3 23:0:0')" name="date_to"/>
<field eval="time.strftime('%Y-%m-1 1:0:0')" name="request_date_from"/>
<field eval="time.strftime('%Y-%m-1 23:0:0')" name="request_date_to"/>
<field eval="time.strftime('%Y-%m-3 23:0:0')" name="request_date_to"/>
<field name="number_of_days">1</field>
<field name="employee_id" ref="hr.employee_qdp"/>
<field name="state">confirm</field>