summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/x_manufactures.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-02-21 10:12:39 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-02-21 10:12:39 +0700
commit3ea572e1292eca97b193c971091d7d2f7bbb260b (patch)
tree91710202d88f7bc48f9aa37c44dd3c2c2a39d4bd /indoteknik_custom/models/x_manufactures.py
parent1ac814df6fb11614d58df36662c7d8f72951f4c3 (diff)
add cleanup wati notification and add some field in manufactures
Diffstat (limited to 'indoteknik_custom/models/x_manufactures.py')
-rwxr-xr-xindoteknik_custom/models/x_manufactures.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/x_manufactures.py b/indoteknik_custom/models/x_manufactures.py
index e6842797..dd6948a9 100755
--- a/indoteknik_custom/models/x_manufactures.py
+++ b/indoteknik_custom/models/x_manufactures.py
@@ -44,6 +44,8 @@ class XManufactures(models.Model):
], string="Cache Reset")
sequence = fields.Integer(string='Sequence', help='Urutan tampil di homepage jika show as new product')
show_as_new_product = fields.Boolean(string='Show as New Product', help='Centang jika ingin ditammpilkan di website sebagai segment Produk Baru')
+ parent_id = fields.Many2one('x_manufactures', string='Parent', help='Parent Brand tersebut')
+ category_ids = fields.Many2many('product.public.category', string='Category', help='Brand tsb memiliki Category apa saja')
def cache_reset(self):
manufactures = self.env['x_manufactures'].search([