diff --git a/addons/hr_holidays/static/src/js/time_off_calendar/time_off_calendar_popover.js b/addons/hr_holidays/static/src/js/time_off_calendar/time_off_calendar_popover.js index 89d4082f8a3..41dec8b7a11 100644 --- a/addons/hr_holidays/static/src/js/time_off_calendar/time_off_calendar_popover.js +++ b/addons/hr_holidays/static/src/js/time_off_calendar/time_off_calendar_popover.js @@ -9,7 +9,7 @@ export const TimeOffCalendarPopover = CalendarPopover.extend({ init(parent, eventInfo) { this._super(...arguments); const state = this.event.extendedProps.record.state; - this.canDelete = state && ['validate', 'refuse'].includes(state); + this.canDelete = state && !['validate', 'refuse'].includes(state); this.canEdit = state !== undefined; this.displayFields = [];