diff --git a/resource_booking/models/calendar_event.py b/resource_booking/models/calendar_event.py index 9500e8c1..0bca28e8 100644 --- a/resource_booking/models/calendar_event.py +++ b/resource_booking/models/calendar_event.py @@ -36,10 +36,10 @@ def _validate_booking_modifications(self): % "\n- ".join(frozen.mapped("display_name")) ) - def unlink(self): + def unlink(self, can_be_deleted=True): """Check you're allowed to unschedule it.""" self._validate_booking_modifications() - return super().unlink() + return super().unlink(can_be_deleted=can_be_deleted) def write(self, vals): """Check you're allowed to reschedule it."""