mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_api_rest: added min stay and quota in demo users
This commit is contained in:
@@ -200,7 +200,6 @@ class PmsAvailabilityPlanService(Component):
|
||||
def write_availability_plan_rule(
|
||||
self, availability_plan_id, availability_plan_rule_id, pms_avail_plan_rule_info
|
||||
):
|
||||
vals = dict()
|
||||
avail_rule = self.env["pms.availability.plan.rule"].search(
|
||||
[
|
||||
("availability_plan_id", "=", availability_plan_id),
|
||||
@@ -216,6 +215,6 @@ class PmsAvailabilityPlanService(Component):
|
||||
"quota": pms_avail_plan_rule_info.quota,
|
||||
"closed": pms_avail_plan_rule_info.closed,
|
||||
"closed_departure": pms_avail_plan_rule_info.closedDeparture,
|
||||
"closed_arrival": pms_avail_plan_rule_info.closedArrival
|
||||
"closed_arrival": pms_avail_plan_rule_info.closedArrival,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -65,7 +65,6 @@ class PmsPropertyService(Component):
|
||||
def get_property(self, property_id):
|
||||
pms_property = self.env["pms.property"].search([("id", "=", property_id)])
|
||||
res = []
|
||||
avail_rule_names = []
|
||||
PmsPropertyInfo = self.env.datamodels["pms.property.info"]
|
||||
if not pms_property:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user