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' )