Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pms/models/pms_folio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,12 @@ def action_confirm(self):
)

if self.env.context.get("confirm_all_reservations"):
self.reservation_ids.action_confirm()
# Skip reservations cancelled because of a modification: re-confirming
# them would re-occupy the room of a superseded version of the same
# booking and trigger spurious availability errors.
self.reservation_ids.filtered(
lambda r: not (r.state == "cancel" and r.cancelled_reason == "modified")
).action_confirm()

return True

Expand Down
Loading