Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
3098 Prikazi

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?

Avatar
Opusti

are you trying categ_id ? typo error

Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jul. 24
2683
1
jun. 24
5147
1
okt. 23
10859
1
okt. 23
98
1
avg. 23
2193