Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3101 Visualizzazioni

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
Abbandona

are you trying categ_id ? typo error

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 24
2684
1
giu 24
5147
1
ott 23
10860
1
ott 23
98
1
ago 23
2193