Skip to content

Commit

Permalink
[REF]pms_api_rest: added max availability in avail plan rule post ser…
Browse files Browse the repository at this point in the history
…vice
  • Loading branch information
braisab authored and miguelpadin committed Aug 30, 2022
1 parent c6a31f2 commit e23b09c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pms_api_rest/services/pms_availability_plan_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ def create_availability_plan_rule(
vals.update({"closed_arrival": avail_plan_rule.closedArrival})
if avail_plan_rule.quota is not None:
vals.update({"quota": avail_plan_rule.quota})
if avail_plan_rule.maxAvailability is not None:
vals.update({"max_avail": avail_plan_rule.maxAvailability})
avail_rule = self.env["pms.availability.plan.rule"].search(
[
("availability_plan_id", "=", avail_plan_rule.availabilityPlanId),
Expand Down

0 comments on commit e23b09c

Please sign in to comment.