From c4b6e2d594b8cbd7d424673d04741a1a4cb2ff81 Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Wed, 12 Oct 2022 16:52:46 +0700 Subject: Update Feature: - filter product_name, manufactures, categories in flash sale - add categories in product response - create get manufacture and category by page --- indoteknik_custom/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indoteknik_custom') diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index a51f0600..5c75718a 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -32,7 +32,7 @@ class ProductTemplate(models.Model): for product_template in self: product_template.qty_stock_vendor = 0 for product_variant in product_template.product_variant_ids: - product_template.qty_stock_vendor += product_variant.qty_stock_vendor + product_template.qty_stock_vendor += int(product_variant.qty_stock_vendor) def _compute_web_price(self): for template in self: -- cgit v1.2.3