From ff058e22f64cd3e2dbd69d835f68877f530820c3 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Tue, 30 Dec 2025 10:45:15 +0700 Subject: (andri) has magento + sync to mirroring to test --- indoteknik_custom/models/product_template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indoteknik_custom/models/product_template.py') diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 2eed0f0d..5730b08b 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -84,7 +84,6 @@ class ProductTemplate(models.Model): merchandise_ok = fields.Boolean(string='Product Promotion') print_barcode = fields.Boolean(string='Print Barcode', default=True) # qr_code = fields.Binary("QR Code", compute='_compute_qr_code') - # has_magento = fields.Boolean(string='Has Magento?', default=False) @api.model def create(self, vals): @@ -940,6 +939,8 @@ 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) + def generate_product_sla(self): product_variant_ids = self.env.context.get('active_ids', []) product_variant = self.search([('id', 'in', product_variant_ids)]) -- cgit v1.2.3 From e42aee6c9af962edad71603eaaaeceea8589dc7a Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Thu, 15 Jan 2026 16:16:04 +0700 Subject: fix invalid field --- indoteknik_custom/models/product_template.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'indoteknik_custom/models/product_template.py') diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 5730b08b..4ff2dffa 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -15,16 +15,15 @@ _logger = logging.getLogger(__name__) class ProductTemplate(models.Model): _inherit = "product.template" - x_attribute_set_id = fields.Integer( - string="Magento Attribute Set ID", - default=0, - index=True, - 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", + # 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" + # ) image_carousel_lines = fields.One2many( comodel_name="image.carousel", @@ -939,7 +938,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) + # 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', []) -- cgit v1.2.3 From a571ac15c0cf643542acaf7051ccc8db6976c9d6 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Thu, 15 Jan 2026 19:31:43 +0700 Subject: field has magento & attribute set --- indoteknik_custom/models/product_template.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'indoteknik_custom/models/product_template.py') 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', []) -- cgit v1.2.3