[FIX] hr_holidays: correct default date_to from calendar
Before this commit, highlighting several days from the calendar view in Time Off would still take the first day selected as the default date_to. The expected behaviour is that it should be the last day highlighted instead. closes odoo/odoo#154469 X-original-commit: fcd2b141a337913e376f7ce0d2b313b68d97d6cc Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com> Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
This commit is contained in:
@@ -38,7 +38,7 @@ export class TimeOffCalendarModel extends CalendarModel {
|
||||
}
|
||||
if ("default_date_to" in context) {
|
||||
context["default_date_to"] = serializeDateTime(
|
||||
deserializeDateTime(context["default_date_from"]).set({ hours: 19 })
|
||||
deserializeDateTime(context["default_date_to"]).set({ hours: 19 })
|
||||
);
|
||||
}
|
||||
return context;
|
||||
|
||||
Reference in New Issue
Block a user