[IMP] reservation state cancel key, improvement views and refactoring

This commit is contained in:
Dario Lodeiros
2021-06-28 10:21:01 +02:00
parent c72be7c8b3
commit 3a4b48901d
14 changed files with 66 additions and 97 deletions

View File

@@ -176,9 +176,9 @@ class PmsServiceLine(models.Model):
# TODO: Review cancel logic
# reservation = line.reservation_id.reservation_id
# pricelist = reservation.pricelist_id
# if reservation.state == "cancelled":
# if reservation.state == "cancel":
# if (
# reservation.cancelled_reason
# reservation.cancel_reason
# and pricelist
# and pricelist.cancelation_rule_id
# ):