diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-23 14:19:38 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-23 14:19:38 +0700 |
| commit | 3ed54712ca9856f3be937f8325db030d0796532e (patch) | |
| tree | a0e96a3a10f59bde060113b941b681addca43f73 /indoteknik_api/controllers/api_v2/product.py | |
| parent | 23014336a1fe1fe5ef54fad30cf6c3d9cc59b2d8 (diff) | |
Refactor pricelist on product price
Diffstat (limited to 'indoteknik_api/controllers/api_v2/product.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v2/product.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indoteknik_api/controllers/api_v2/product.py b/indoteknik_api/controllers/api_v2/product.py index d9b43bda..19a97dec 100644 --- a/indoteknik_api/controllers/api_v2/product.py +++ b/indoteknik_api/controllers/api_v2/product.py @@ -12,12 +12,10 @@ class V2Product(controller.Controller): if not id: return self.response(code=400, description='id is required') - pricelist = self.user_pricelist() - data = [] id = [int(x) for x in id.split(',')] product_templates = request.env['product.template'].search([('id', 'in', id)]) if product_templates: - data = [request.env['product.template'].v2_api_single_response(x, pricelist=pricelist, with_detail='DEFAULT') for x in product_templates] + data = [request.env['product.template'].v2_api_single_response(x, with_detail='DEFAULT') for x in product_templates] return self.response(data)
\ No newline at end of file |
