From eca615138b5259114073e29e06d4499edaadbc69 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 26 Oct 2022 13:40:53 +0700 Subject: Update product_template.py --- indoteknik_custom/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 145d2076..219eda5c 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -31,7 +31,7 @@ class ProductTemplate(models.Model): product_rating = fields.Float('Product Rating', help="Digunakan untuk sorting product di website", default=0.0) last_calculate_rating = fields.Datetime("Last Calculate Rating") web_price_sorting = fields.Float('Web Price Sorting', help='Hanya digunakan untuk sorting di web, harga tidak berlaku', default=0.0) - qty_vendor = fields.Float(string='Qty Vendor') + qty_vendor = fields.Float(string='Qty Vendor', default=0) def _compute_qty_stock_vendor(self): for product_template in self: -- cgit v1.2.3