コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4918 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
11月 23
3169
7
4月 21
20540
2
11月 16
4273
1
3月 15
13718
4
3月 15
21159