diff options
Diffstat (limited to 'fixco_custom/models/brands.py')
| -rw-r--r-- | fixco_custom/models/brands.py | 16 |
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 |
