[IMP]pms: avoid compute issues with cancel folio

This commit is contained in:
Darío Lodeiros
2024-02-27 12:58:42 +01:00
parent 44bceee66a
commit 56fcf3a105

View File

@@ -1198,7 +1198,7 @@ class PmsReservation(models.Model):
record.allowed_cancel = ( record.allowed_cancel = (
True True
if ( if (
record.state not in ["cancel", "done"] record.state not in ["done"]
and fields.Date.today() <= record.checkout and fields.Date.today() <= record.checkout
) )
else False else False