summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-11-01 09:48:23 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-11-01 09:48:23 +0700
commitd57c3cebb92a87686b14b794e9dd1a4e35e0e6cf (patch)
treee899b39936cfee365ca41d9f6f9eab1a6712e7ae /indoteknik_custom
parent742213021f5e301518512c4f190b91df8182337a (diff)
parentb2ac5d8be2d426dd968cbc9244377ecf3040800b (diff)
Merge branch 'master'
Diffstat (limited to 'indoteknik_custom')
-rwxr-xr-xindoteknik_custom/models/product_template.py2
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: