From b9beddc9b5f48cd7bb95c90c385ac7d55dc42049 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 2 Nov 2023 12:20:40 +0100 Subject: [PATCH] [FIX] web_calendar_slot_duration: custom event length When we specify the date in the calendar event we should not force the duration. TT45649 --- web_calendar_slot_duration/static/src/js/calendar_model.esm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web_calendar_slot_duration/static/src/js/calendar_model.esm.js b/web_calendar_slot_duration/static/src/js/calendar_model.esm.js index ebc8ffb46..7acbbbaa0 100644 --- a/web_calendar_slot_duration/static/src/js/calendar_model.esm.js +++ b/web_calendar_slot_duration/static/src/js/calendar_model.esm.js @@ -9,6 +9,7 @@ import {patch} from "@web/core/utils/patch"; patch(CalendarModel.prototype, "WebCalendarSlotDurationCalendarModel", { buildRawRecord(partialRecord, options = {}) { if ( + !partialRecord.end && this.env.searchModel.context.calendar_slot_duration && !partialRecord.isAllDay ) {