Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4797 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
lis 23
3039
7
dub 21
20361
2
lis 16
4165
1
bře 15
13621
4
bře 15
21102