From 737d6932676242ad4aae7f7c175ea98d5b00f437 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 22 Jul 2025 11:11:34 +0700 Subject: odoo fixco --- fixco_custom/models/brands.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 fixco_custom/models/brands.py (limited to 'fixco_custom/models/brands.py') 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 -- cgit v1.2.3