diff options
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 5730b08b..2c798f43 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -17,13 +17,13 @@ class ProductTemplate(models.Model): x_attribute_set_id = fields.Integer( string="Magento Attribute Set ID", - default=0, - index=True, - help="Attribute Set ID dari Magento" + 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" + help="Attribute Set Name dari Magento", + readonly=True ) image_carousel_lines = fields.One2many( @@ -939,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) + 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', []) |
