summaryrefslogtreecommitdiff
path: root/fixco_custom/models/brands.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-07-22 11:11:34 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-07-22 11:11:34 +0700
commit737d6932676242ad4aae7f7c175ea98d5b00f437 (patch)
tree0da618be66f96ccb053ddbe5a1161fc60cd7186d /fixco_custom/models/brands.py
parent10e171ea5389873fea3fb13c90242b322a37a990 (diff)
odoo fixco
Diffstat (limited to 'fixco_custom/models/brands.py')
-rw-r--r--fixco_custom/models/brands.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/fixco_custom/models/brands.py b/fixco_custom/models/brands.py
new file mode 100644
index 0000000..378adeb
--- /dev/null
+++ b/fixco_custom/models/brands.py
@@ -0,0 +1,16 @@
+from odoo import models, fields # type: ignore
+
+class Brands(models.Model):
+ _name = 'brands'
+ _description = 'Brands'
+
+ name = fields.Char(string='Brand Name', required=True)
+ product_ids = fields.One2many('product.product', 'brand_id', string='Products')
+ category_ids = fields.Many2many(
+ 'product.public.category',
+ # 'brands_category_rel',
+ # 'brand_id',
+ # 'category_id',
+ string='Public Categories'
+)
+ \ No newline at end of file