Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4866 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lis 23
3120
7
kwi 21
20492
2
lis 16
4217
1
mar 15
13661
4
mar 15
21132