summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/product.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py
index 09ea459d..2e978679 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -101,7 +101,7 @@ class Product(controller.Controller):
product_templates = request.env['product.template'].search(query, limit=limit, offset=offset)
data = {
'product_total': request.env['product.template'].search_count(query),
- 'products': [request.env['product.template'].api_single_response(x, with_detail=True) for x in product_templates]
+ 'products': [request.env['product.template'].api_single_response(x, with_detail='SOLR') for x in product_templates]
}
return self.response(data)
@@ -118,7 +118,7 @@ class Product(controller.Controller):
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'].api_single_response(x, with_detail=True) for x in product_templates]
+ data = [request.env['product.template'].api_single_response(x, with_detail='DEFAULT') for x in product_templates]
return self.response(data)