[REF] pms-api-rest: refactor services

This commit is contained in:
miguelpadin
2021-12-27 20:55:13 +01:00
committed by Darío Lodeiros
parent 1c7b8efdc5
commit 2a0d960184
9 changed files with 28 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ class PmsPartnerService(Component):
_inherit = "base.rest.service"
_name = "pms.partner.service"
_usage = "partners"
_collection = "pms.private.services"
_collection = "pms.services"
@restapi.method(
[
@@ -19,6 +19,7 @@ class PmsPartnerService(Component):
)
],
output_param=Datamodel("pms.partner.info", is_list=True),
auth="jwt_api_pms",
)
def get_partners(self):
domain = []