[FIX] web_calendar_slot_duration: custom event length

When we specify the date in the calendar event we should not force the
duration.

TT45649
pull/2786/head
David 2023-11-02 12:20:40 +01:00 committed by Christopher Rogos
parent 0715192684
commit b167da850a
1 changed files with 1 additions and 0 deletions

View File

@ -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
) {