From c63d12bb9192ce845aace7489939c47c24973c66 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 8 Dec 2023 15:00:16 +0700 Subject: Update get API Product breadcrumb source field --- indoteknik_api/controllers/api_v1/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indoteknik_api/controllers/api_v1') 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')]) -- cgit v1.2.3