From e74ac27eb94a05c569f9789b1f875f7c85b6dc02 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 12 Jan 2023 11:22:05 +0700 Subject: add is new product field --- indoteknik_custom/models/product_template.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index dbbd4ad4..9f0410f4 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -44,6 +44,8 @@ class ProductTemplate(models.Model): usage = fields.Char(string='Usage') specification = fields.Char(string='Specification') material = fields.Char(string='Material') + is_new_product = fields.Boolean(string='Produk Baru', + help='Centang jika ingin ditammpilkan di website sebagai segment Produk Baru') # def write(self, vals): # if 'solr_flag' not in vals and self.solr_flag == 1: -- cgit v1.2.3