summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models')
-rwxr-xr-xindoteknik_custom/models/product_public_category.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/models/product_public_category.py b/indoteknik_custom/models/product_public_category.py
index 95122f18..45ebc26d 100755
--- a/indoteknik_custom/models/product_public_category.py
+++ b/indoteknik_custom/models/product_public_category.py
@@ -1,5 +1,6 @@
from odoo import fields, models
+
class ProductPublicCategory(models.Model):
_inherit = "product.public.category"
@@ -10,3 +11,6 @@ class ProductPublicCategory(models.Model):
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")
+ parent_frontend_id = fields.Many2one('product.public.category', string='Parent Frontend Category', index=True)
+ child_frontend_id = fields.One2many('product.public.category', 'parent_frontend_id', string='Children Frontend Categories')
+ sequence_frontend = fields.Integer(help="Gives the sequence order when displaying a list of product categories.", index=True)