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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py
index 1b698f26..ce0ca406 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -29,7 +29,7 @@ class Product(controller.Controller):
category = product.public_categ_ids[0]
while category:
categories.append({'id': category.id, 'name': category.name})
- category = category.parent_frontend_id
+ category = category.parent_id
categories.reverse()
return self.response(categories, headers=[('Cache-Control', 'max-age=3600, public')])