summaryrefslogtreecommitdiff
path: root/fixco_api/controllers/api_v1/partner.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-05-29 14:56:48 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-05-29 14:56:48 +0700
commitf6bb7e8c0236c4a3b3c89101d13ca593d7170283 (patch)
tree2a50f25903873a91a6a6ca76cc30800e69969db1 /fixco_api/controllers/api_v1/partner.py
parent0f700ade1d878e3b7031c8abc5f7d1bdb6ccaaf7 (diff)
add api get sale order
Diffstat (limited to 'fixco_api/controllers/api_v1/partner.py')
-rw-r--r--fixco_api/controllers/api_v1/partner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fixco_api/controllers/api_v1/partner.py b/fixco_api/controllers/api_v1/partner.py
index 66e9db4..fa68c76 100644
--- a/fixco_api/controllers/api_v1/partner.py
+++ b/fixco_api/controllers/api_v1/partner.py
@@ -10,7 +10,7 @@ class Partner(controller.Controller):
@http.route(prefix + 'partner/address/', auth='public', methods=['GET', 'OPTIONS'])
@controller.Controller.must_authorized()
def get_partner_address_by_id(self, **kw):
- partner = request.env[self._name].search([('id', '=', 14)])
+ partner = request.env['res.partner'].search([('id', '=', 14)])
# return self.response(partner)
return self.response({
'id': partner.id,