summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/x_manufactures.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-02-21 13:33:01 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-02-21 13:33:01 +0700
commitbdb9f28bb5b295b2a5dc5b116d67a561b9947e4a (patch)
tree226a75e5fbbc24adc261983acdb8bcb16ed50792 /indoteknik_custom/models/x_manufactures.py
parentc2105f6b0efdd0bb74b934205bb0acc43b297bdc (diff)
parent861bb64e5a972b8ce9b09d2345dbb6250d041435 (diff)
Merge branch 'release' into midtrans
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([