summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-12-08 15:31:46 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-12-08 15:31:46 +0700
commitde6039ab7675d91bcfcb67747d3c72be95a379e6 (patch)
treedf1fa2d9f235298988045c5be5a8e60b9951fd13 /indoteknik_api/controllers/api_v1
parentc1f7742c254898fa5981e8ca7d870ac42d3f8346 (diff)
parentc63d12bb9192ce845aace7489939c47c24973c66 (diff)
Merge branch 'production' into change/feature/promotion-program
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')])