Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4760 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
nov. 23
2980
7
apr. 21
20283
2
nov. 16
4133
1
mar. 15
13580
4
mar. 15
21025