Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
37234 Vues

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
Ignorer
Meilleure réponse

'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
Ignorer
Meilleure réponse

Hi,

you can use :

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

Thanks.

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
déc. 23
21151
8
juil. 24
16601
2
déc. 23
20204
0
mars 15
8666
1
mars 15
7456