Skip to content

Commit

Permalink
[IMP]pms: overbooking yes occupies availability
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed May 15, 2024
1 parent a9c47e6 commit 93afd43
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pms/models/pms_reservation_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,7 @@ def _compute_price(self):
@api.depends("reservation_id.state", "is_reselling")
def _compute_occupies_availability(self):
for line in self:
if (
line.reservation_id.state == "cancel"
or line.overbooking
or line.is_reselling
):
if line.reservation_id.state == "cancel" or line.is_reselling:
line.occupies_availability = False
else:
line.occupies_availability = True
Expand Down

0 comments on commit 93afd43

Please sign in to comment.