diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-11-01 09:04:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-11-01 09:04:50 +0700 |
| commit | b2ac5d8be2d426dd968cbc9244377ecf3040800b (patch) | |
| tree | f3379c443b9bade39d09c6ba2d606b5f39b36918 | |
| parent | 4fc52a5e56baa116268e4bbab2cf9a5c017fd0db (diff) | |
add solr flag in product template and product product
| -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: |
