Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4696 Vues

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
Ignorer
Auteur Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
nov. 23
2918
7
avr. 21
20211
2
nov. 16
4081
1
mars 15
13533
4
mars 15
20963