[FIX] hr_holidays: fix date range picker
Before this commit, picking a range of dates by clicking on the end date field set the wrong date on the start date field. This was because the option "related_end_date" was used on the end date field instead of "related_start_date" Replacing the "related_end_date" by "related_start_date" on the end date field fixes the issue. closes odoo/odoo#79997 X-original-commit: 8402e55e0db474ee64e641866d8c76302fb1ef4e Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
This commit is contained in:
@@ -262,7 +262,7 @@
|
||||
'invisible': ['|', ('request_unit_half', '=', True), ('request_unit_hours', '=', True)],
|
||||
'required': ['|', ('date_from', '=', False), ('date_to', '=', False)]
|
||||
}"
|
||||
widget="daterange" options="{'related_end_date': 'request_date_from'}"/>
|
||||
widget="daterange" options="{'related_start_date': 'request_date_from'}"/>
|
||||
<field name="request_date_from_period" class="oe_inline"
|
||||
string="In"
|
||||
options="{'horizontal': True}"
|
||||
|
||||
Reference in New Issue
Block a user