Skip to Content
मेन्यू
This question has been flagged
1 Reply
4844 Views

Hello,

I have a model like this: (i just simplified)

class Products(models.Model):
    _name = 'products'
    category = fields.Many2one('category')
)

category model is:

class Category(models.Model):
    _name = 'category'
    category_type_id = fields.Many2one('category_type')
)

What i want is:

Need to add "category_type_id" item on Product model view -> search -> filter list. In other word need to filter Product items by category_type_id with given value.

How can i do this? please help, thanks.

Avatar
Discard
Author Best Answer

Solved with adding a field on Products model that is related to Category.category_type_id

Avatar
Discard
Related Posts Replies Views Activity
2
नव॰ 23
3098
7
अप्रैल 21
20459
2
नव॰ 16
4200
1
मार्च 15
13657
4
मार्च 15
21131