summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-12-22 06:44:54 +0000
committerIT Fixcomart <it@fixcomart.co.id>2022-12-22 06:44:54 +0000
commit217963147ff6f422de2db818e1836816f85cec46 (patch)
tree52c69e07cf322b80f5fb81fa7996ebcc042cdcf3 /indoteknik_custom/models
parent604c76be4c198dff8bd170789d6082e8990ceaa8 (diff)
parentdb2f280683b29ac5d32158f3fab0f3df671935e9 (diff)
Merged in release (pull request #11)
Release
Diffstat (limited to 'indoteknik_custom/models')
-rwxr-xr-xindoteknik_custom/models/__init__.py1
-rwxr-xr-xindoteknik_custom/models/product_public_category.py1
-rw-r--r--indoteknik_custom/models/website_categories_homepage.py14
-rwxr-xr-xindoteknik_custom/models/x_manufactures.py1
4 files changed, 17 insertions, 0 deletions
diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py
index 17ad7b8d..dc85ce96 100755
--- a/indoteknik_custom/models/__init__.py
+++ b/indoteknik_custom/models/__init__.py
@@ -34,3 +34,4 @@ from . import website_user_cart
from . import website_user_wishlist
from . import website_brand_homepage
from . import mail_mail
+from . import website_categories_homepage
diff --git a/indoteknik_custom/models/product_public_category.py b/indoteknik_custom/models/product_public_category.py
index 45ebc26d..91028ae0 100755
--- a/indoteknik_custom/models/product_public_category.py
+++ b/indoteknik_custom/models/product_public_category.py
@@ -14,3 +14,4 @@ class ProductPublicCategory(models.Model):
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)
+# check
diff --git a/indoteknik_custom/models/website_categories_homepage.py b/indoteknik_custom/models/website_categories_homepage.py
new file mode 100644
index 00000000..612dd8a0
--- /dev/null
+++ b/indoteknik_custom/models/website_categories_homepage.py
@@ -0,0 +1,14 @@
+from odoo import fields, models
+
+
+class WebsiteCategoriesHomepage(models.Model):
+ _name = 'website.categories.homepage'
+
+ category_id = fields.Many2one('product.public.category', string='Category', help='table ecommerce category')
+ image = fields.Binary(string='Image')
+ url = fields.Char(string='URL')
+ sequence = fields.Integer(string='Sequence')
+ status = fields.Selection([
+ ('tayang', 'Tayang'),
+ ('tidak_tayang', 'Tidak Tayang')
+ ], string='Status')
diff --git a/indoteknik_custom/models/x_manufactures.py b/indoteknik_custom/models/x_manufactures.py
index dae37668..24b64c14 100755
--- a/indoteknik_custom/models/x_manufactures.py
+++ b/indoteknik_custom/models/x_manufactures.py
@@ -35,6 +35,7 @@ class XManufactures(models.Model):
('sparepart', 'Spare Part')
], string="Jenis Produk")
x_short_desc = fields.Text(string="Short Description")
+ product_tmpl_ids = fields.One2many('product.template', 'x_manufacture', string='Product Templates')
@api.onchange('x_name','image_promotion_1','image_promotion_2')
def update_solr_flag(self):