Skip to Content
Menu
This question has been flagged
2 Replies
2803 Views

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
Discard

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
Discard
Related Posts Replies Views Activity
2
Jul 24
942
1
Jun 24
3564
1
Oct 23
8590
1
Oct 23
97
1
Aug 23
2192