mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[REF] pms_api_rest: renaming of datamodel files
This commit is contained in:
committed by
Darío Lodeiros
parent
91872cbaa3
commit
cd451c8514
@@ -18,13 +18,13 @@ class PmsPartnerService(Component):
|
||||
"GET",
|
||||
)
|
||||
],
|
||||
output_param=Datamodel("pms.partner.short.info", is_list=True),
|
||||
output_param=Datamodel("pms.partner.info", is_list=True),
|
||||
auth="public",
|
||||
)
|
||||
def get_partners(self):
|
||||
domain = []
|
||||
result_partners = []
|
||||
PmsPartnerShortInfo = self.env.datamodels["pms.partner.short.info"]
|
||||
PmsPartnerInfo = self.env.datamodels["pms.partner.info"]
|
||||
for partner in (
|
||||
self.env["res.partner"]
|
||||
.sudo()
|
||||
@@ -34,7 +34,7 @@ class PmsPartnerService(Component):
|
||||
):
|
||||
|
||||
result_partners.append(
|
||||
PmsPartnerShortInfo(
|
||||
PmsPartnerInfo(
|
||||
id=partner.id,
|
||||
name=partner.name,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user