summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-12-20 10:09:33 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-12-20 10:09:33 +0700
commit4e47cbd68ff86e26dc38f6c41611d1d8fffbd1ef (patch)
treef484d36f473cbcd6e7d655ed3ea23577963014b9
parent158f95b2f9a06c3f32bb5623992a04e846ee13a9 (diff)
add english_name in ecommerce category product
-rwxr-xr-xindoteknik_custom/models/product_public_category.py1
-rwxr-xr-xindoteknik_custom/views/product_public_category.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/product_public_category.py b/indoteknik_custom/models/product_public_category.py
index bb661772..95122f18 100755
--- a/indoteknik_custom/models/product_public_category.py
+++ b/indoteknik_custom/models/product_public_category.py
@@ -9,3 +9,4 @@ class ProductPublicCategory(models.Model):
x_studio_field_BfNp2 = fields.Char(string="Nama Alias")
x_studio_field_d1HS4 = fields.Char(string="Name 2")
x_studio_field_f54P2 = fields.Char(string="Name 3")
+ english_name = fields.Char(string="English Name")
diff --git a/indoteknik_custom/views/product_public_category.xml b/indoteknik_custom/views/product_public_category.xml
index 858d7ada..7e0eba36 100755
--- a/indoteknik_custom/views/product_public_category.xml
+++ b/indoteknik_custom/views/product_public_category.xml
@@ -6,6 +6,7 @@
<field name="inherit_id" ref="website_sale.product_public_category_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
+ <field name="english_name"/>
<field name="x_studio_field_d1HS4"/>
<field name="x_studio_field_f54P2"/>
<field name="x_studio_field_BfNp2"/>