summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-01-12 11:22:05 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-01-12 11:22:05 +0700
commite74ac27eb94a05c569f9789b1f875f7c85b6dc02 (patch)
tree5627c15e87a93359fa0f91b5b134a56533558f54
parent8b3d929a7cae089ac12d9752d3f97793dbe084d5 (diff)
add is new product field
-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 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: