mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms-pwa: add avail. plan id to response @ av. plan rules service
This commit is contained in:
committed by
Darío Lodeiros
parent
800910b47a
commit
38eb70262a
@@ -141,6 +141,7 @@ class PmsAvailabilityPlanService(Component):
|
||||
closedArrival=rule.closed_arrival,
|
||||
quota=rule.quota if rule.quota != -1 else 0,
|
||||
maxAvailability=rule.max_avail,
|
||||
availabilityPlanId=rule.availability_plan_id,
|
||||
)
|
||||
result.append(availability_plan_rule_info)
|
||||
|
||||
|
||||
@@ -34,16 +34,16 @@ class PmsCancelationRuleService(Component):
|
||||
)
|
||||
if cancelation_rule_search_param.pmsPropertyId:
|
||||
domain.extend(
|
||||
[
|
||||
'|',
|
||||
(
|
||||
"pms_property_ids",
|
||||
"in",
|
||||
[cancelation_rule_search_param.pmsPropertyId],
|
||||
),
|
||||
("pms_property_ids", "=", False),
|
||||
]
|
||||
)
|
||||
[
|
||||
"|",
|
||||
(
|
||||
"pms_property_ids",
|
||||
"in",
|
||||
[cancelation_rule_search_param.pmsPropertyId],
|
||||
),
|
||||
("pms_property_ids", "=", False),
|
||||
]
|
||||
)
|
||||
result_cancelation_rules = []
|
||||
PmsCancelationRuleInfo = self.env.datamodels["pms.cancelation.rule.info"]
|
||||
for cancelation_rule in self.env["pms.cancelation.rule"].search(
|
||||
|
||||
Reference in New Issue
Block a user