mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: avoid compute issues with cancel folio
This commit is contained in:
@@ -1198,7 +1198,7 @@ class PmsReservation(models.Model):
|
||||
record.allowed_cancel = (
|
||||
True
|
||||
if (
|
||||
record.state not in ["cancel", "done"]
|
||||
record.state not in ["done"]
|
||||
and fields.Date.today() <= record.checkout
|
||||
)
|
||||
else False
|
||||
|
||||
Reference in New Issue
Block a user