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

How to call search method with "is not null" criteria :

picking_pool.search(cr, uid, [('sale_id','is not','null')], context=context)

(I know that's not the good syntax)

Avatar
Abbandona
Risposta migliore

'is not null' is not correct operator for using search method. List of operators you might use: =, !=, >, >=, <, <=, like, ilike, in, not in, child_of, parent_left, parent_right. to get you code working try this:

picking_pool.search(cr, uid, [('sale_id','!=',False)], context=context)
Avatar
Abbandona
Risposta migliore

Hi,

you can use :

picking_pool.search(cr, uid, [('sale_id','!=','')], context=context)

Thanks.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 23
20962
8
lug 24
16358
2
dic 23
20050
0
mar 15
8486
1
mar 15
7228