summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/x_manufactures.py
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-23 14:41:48 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-23 14:41:48 +0700
commitae475a8d1dc9fa291d079e00d4194c55a0bb408c (patch)
tree82a7d96f161e1c0b2ece24171bd5ac3d4f4484d7 /indoteknik_custom/models/x_manufactures.py
parent6538d8958c541e208df9a5fd83d5bdd5a0ae021c (diff)
parentde4a6c2c2ce115d169a3a85548ff95c8789e25c8 (diff)
Merge branch 'release' of bitbucket.org:altafixco/indoteknik-addons into release
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([