From 3ce226dd85abb30e4e8275c1433f59991db10124 Mon Sep 17 00:00:00 2001 From: "Michael (mcm)" Date: Wed, 17 Nov 2021 13:16:08 +0000 Subject: [PATCH] [FIX] hr_holidays: fix date range picker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/hr_holidays/views/hr_leave_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/views/hr_leave_views.xml b/addons/hr_holidays/views/hr_leave_views.xml index 4a2928213d6..4d128e76f75 100644 --- a/addons/hr_holidays/views/hr_leave_views.xml +++ b/addons/hr_holidays/views/hr_leave_views.xml @@ -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'}"/>