summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-15 16:16:04 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-15 16:16:04 +0700
commite42aee6c9af962edad71603eaaaeceea8589dc7a (patch)
tree9085e552ed994e57011c681c9776fe662d860a91
parent74b5caa2ff4c30c824b243a8c621df590eab90e6 (diff)
fix invalid field
-rwxr-xr-xindoteknik_custom/models/product_template.py21
-rw-r--r--indoteknik_custom/views/product_product.xml2
-rwxr-xr-xindoteknik_custom/views/product_template.xml6
3 files changed, 14 insertions, 15 deletions
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', [])
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>
diff --git a/indoteknik_custom/views/product_template.xml b/indoteknik_custom/views/product_template.xml
index 9fbf007a..06741859 100755
--- a/indoteknik_custom/views/product_template.xml
+++ b/indoteknik_custom/views/product_template.xml
@@ -78,7 +78,7 @@
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="last_update_solr" position="after">
- <field name="has_magento"/>
+ <!-- <field name="has_magento"/> -->
<field name="barcode_box" />
<field name="qty_pcs_box" />
<field name="clean_website_description" />
@@ -113,8 +113,8 @@
<field name="virtual_rating"/>
<field name="search_rank"/>
<field name="solr_flag"/>
- <field name="x_attribute_set_id"/>
- <field name="x_attribute_set_name"/>
+ <!-- <field name="x_attribute_set_id"/> -->
+ <!-- <field name="x_attribute_set_name"/> -->
<!-- <field name="has_magento"/> -->
</field>
</field>