diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-10-12 16:52:46 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-10-12 16:52:46 +0700 |
| commit | c4b6e2d594b8cbd7d424673d04741a1a4cb2ff81 (patch) | |
| tree | da13382d8d442a991a23e058f2021e0a96c73c87 /indoteknik_custom | |
| parent | dae117ce9bb219557c9a4fc995e93bc4a88ea03f (diff) | |
Update Feature:
- filter product_name, manufactures, categories in flash sale
- add categories in product response
- create get manufacture and category by page
Diffstat (limited to 'indoteknik_custom')
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
