Skip to content

Commit

Permalink
Merge PR #132 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 26, 2024
2 parents 9fd17f4 + edc210f commit 1d52c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resource_booking/models/calendar_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 1d52c4e

Please sign in to comment.