diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-01-13 08:31:31 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-01-13 08:31:31 +0000 |
| commit | b734cf901978f1fda1afd45dd654659b7f7a2971 (patch) | |
| tree | e861456b84e4eef886c03c4016b7a8742b5ab35e /indoteknik_api/controllers/api_v1/user.py | |
| parent | 6fe453ed5da6cfda56f4af454dbedc00b97f0f9e (diff) | |
| parent | ac80b37ffeaefc9efeec732c167ba272bc1a984b (diff) | |
Merged in feature/rest-api (pull request #21)
edit and get partner address
Diffstat (limited to 'indoteknik_api/controllers/api_v1/user.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/user.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/user.py b/indoteknik_api/controllers/api_v1/user.py index ae04e0ff..17bc931e 100644 --- a/indoteknik_api/controllers/api_v1/user.py +++ b/indoteknik_api/controllers/api_v1/user.py @@ -133,7 +133,7 @@ class User(controller.Controller): return self.response(code=404, description='User not found') partner_ids = [user.partner_id.id] + [x.id for x in user.child_ids] - partners = request.env['res.partner'].search([('id', 'in', partner_ids)], order='create_date DESC') + partners = request.env['res.partner'].search([('id', 'in', partner_ids)], order='write_date DESC') address = [request.env['res.users'].api_address_response(x) for x in partners] return self.response(address) |
