Skip to content

Commit

Permalink
[FIX] hr_holidays: fix date range picker
Browse files Browse the repository at this point in the history
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#79937

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
  • Loading branch information
mcm-odoo committed Nov 18, 2021
1 parent 5bd62f0 commit 8402e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/hr_holidays/views/hr_leave_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,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}"
Expand Down

0 comments on commit 8402e55

Please sign in to comment.