summaryrefslogtreecommitdiff
path: root/fixco_custom/models/brands.py
blob: 378adebdb9bcc95e0feef2a59fbd86fdf03f0993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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'
)