跳至内容
菜单
此问题已终结
2 回复
3115 查看

I clicked Edit Action in open developer tool and wrote some filters value in Domain Value.But I make wrong spelling.So I got

ValueError: Invalid field 'catge_id' in leaf "<osv.ExtendedLeaf: ('catge_id', '=', 'Diet Item') on product_template (ctx: )>"

error.How can I fix it?

形象
丢弃

are you trying categ_id ? typo error

最佳答案

Hi SuDarly,

The domain that you've created is in fact invalid. It is saying catge_id instead of categ_id. Fix it like this:

([('categ_id', '=', 'Diet Item')])

P.S: This is a very hardcoded domain, you might want to make it more dynamic or flexible.

Regards,
Yenthe

形象
丢弃
相关帖文 回复 查看 活动
2
7月 24
2686
1
6月 24
5148
1
10月 23
10865
1
10月 23
98
1
8月 23
2193