mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] reservation state cancel key, improvement views and refactoring
This commit is contained in:
@@ -342,7 +342,7 @@ class ReservationLinesToSplit(models.TransientModel):
|
||||
reservation = line.reservation_wizard_id.reservation_id
|
||||
rooms_available = False
|
||||
if line.date and reservation:
|
||||
if reservation.overbooking or reservation.state in ("cancelled"):
|
||||
if reservation.overbooking or reservation.state in ("cancel"):
|
||||
line.allowed_room_ids = self.env["pms.room"].search(
|
||||
[("active", "=", True)]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user