summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-01-16 15:27:13 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-01-16 15:27:13 +0700
commit2701d47f3cd83ef959e9f98d5ea809666c6ee605 (patch)
tree0b88c7071f8c1ec6f5192ce0f2bf560263299e57
parent08e4ee01e48f1f669daf9e6673845f35600f692b (diff)
parentfe4923c5a9b6b7bff15ee47113849be57e620c15 (diff)
Merge branch 'odoo-backup' of bitbucket.org:altafixco/indoteknik-addons into gudang-service
merge
-rwxr-xr-xindoteknik_custom/models/product_template.py10
-rw-r--r--indoteknik_custom/views/product_product.xml2
2 files changed, 6 insertions, 6 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', [])
diff --git a/indoteknik_custom/views/product_product.xml b/indoteknik_custom/views/product_product.xml
index e8a7380b..ee03779f 100644
--- a/indoteknik_custom/views/product_product.xml
+++ b/indoteknik_custom/views/product_product.xml
@@ -20,7 +20,7 @@
<field name="qty_free_bandengan" optional="hide"/>
<field name="qty_rpo" optional="hide"/>
<field name="plafon_qty" optional="hide"/>
- <field name="has_magento" optional="hide"/>
+ <!-- <field name="has_magento" optional="hide"/> -->
</field>
</field>
</record>