diff options
| author | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-15 19:31:43 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-15 19:31:43 +0700 |
| commit | a571ac15c0cf643542acaf7051ccc8db6976c9d6 (patch) | |
| tree | b0b09a9a9d4433c39220586542719e97df0db9bd /indoteknik_custom/models | |
| parent | 4e28776562e9916556a920a6b42ec61f93a2a15f (diff) | |
field has magento & attribute set
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 4ff2dffa..2c798f43 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -15,15 +15,16 @@ _logger = logging.getLogger(__name__) class ProductTemplate(models.Model): _inherit = "product.template" - # x_attribute_set_id = fields.Integer( - # string="Magento Attribute Set ID", - # default=0, - # help="Attribute Set ID dari Magento" - # ) - # x_attribute_set_name = fields.Char( - # string="Magento Attribute Set Name", - # help="Attribute Set Name dari Magento" - # ) + x_attribute_set_id = fields.Integer( + string="Magento Attribute Set ID", + help="Attribute Set ID dari Magento", + readonly=True + ) + x_attribute_set_name = fields.Char( + string="Magento Attribute Set Name", + help="Attribute Set Name dari Magento", + readonly=True + ) image_carousel_lines = fields.One2many( comodel_name="image.carousel", @@ -938,7 +939,7 @@ class ProductProduct(models.Model): qty_pcs_box = fields.Float("Pcs Box") barcode_box = fields.Char("Barcode Box") - # has_magento = fields.Boolean(string='Has Magento?', default=False, readonly=True) + has_magento = fields.Boolean(string='Has Magento?', default=False, readonly=True) def generate_product_sla(self): product_variant_ids = self.env.context.get('active_ids', []) |
