diff options
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 156cf381..28356a86 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -32,6 +32,7 @@ class ProductTemplate(models.Model): 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) virtual_qty = fields.Float(string='Virtual Qty', default=0) + solr_flag = fields.Integer(string='Solr Flag', default=0) def _compute_qty_stock_vendor(self): for product_template in self: @@ -142,6 +143,7 @@ class ProductProduct(models.Model): qty_stock_vendor = fields.Float( 'Qty Stock Vendor', compute='_compute_stock_vendor', help="Stock Vendor") + solr_flag = fields.Integer(string='Solr Flag', default=0) def _compute_web_price(self): for product in self: |
