From 9d0dbdfe0e08ecab850860fa2b23ffb64fa6dae1 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 15 Nov 2022 17:29:45 +0700 Subject: add search rank in product template --- indoteknik_custom/models/product_template.py | 1 + 1 file changed, 1 insertion(+) (limited to 'indoteknik_custom/models/product_template.py') diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 5d34fbc8..114899e6 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -33,6 +33,7 @@ class ProductTemplate(models.Model): 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) + search_rank = fields.Integer(string='Search Rank', default=0) # def write(self, vals): # if 'solr_flag' not in vals and self.solr_flag == 1: -- cgit v1.2.3