mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms-api-rest: add several fields reserv. line service
This commit is contained in:
committed by
Darío Lodeiros
parent
2a0d960184
commit
c3fc102f0e
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user