[IMP] pms-api-rest: add several fields reserv. line service

This commit is contained in:
miguelpadin
2021-12-28 15:16:05 +01:00
committed by Darío Lodeiros
parent 2a0d960184
commit c3fc102f0e
8 changed files with 28 additions and 12 deletions

View File

@@ -21,7 +21,6 @@ class PmsPropertyComponent(Component):
input_param=Datamodel("pms.property.search.param"),
output_param=Datamodel("pms.property.info", is_list=True),
auth="jwt_api_pms",
)
def get_properties(self, property_search_param):
domain = []
@@ -58,7 +57,6 @@ class PmsPropertyComponent(Component):
],
output_param=Datamodel("pms.property.info"),
auth="jwt_api_pms",
)
def get_property(self, property_id):
pms_property = (
@@ -88,11 +86,12 @@ class PmsPropertyComponent(Component):
],
output_param=Datamodel("pms.account.journal.info", is_list=True),
auth="jwt_api_pms",
)
def get_method_payments_property(self, property_id):
pms_property = self.env["pms.property"].sudo().search([("id", "=", property_id)])
pms_property = (
self.env["pms.property"].sudo().search([("id", "=", property_id)])
)
PmsAccountJournalInfo = self.env.datamodels["pms.account.journal.info"]
res = []
if not pms_property: