From edc210f6330e372754499b3780a34ac8ad267ed0 Mon Sep 17 00:00:00 2001 From: cubells Date: Fri, 5 Jul 2024 11:24:21 +0200 Subject: [PATCH] [FIX] resource_booking: avoid unexpected keyword argument error --- resource_booking/models/calendar_event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."""