Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4928 Переглядів

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.

Аватар
Відмінити
Автор Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лист. 23
3181
7
квіт. 21
20559
change search filter Вирішено
2
лист. 16
4277
1
бер. 15
13723
4
бер. 15
21171