Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
36854 Vistas

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
Descartar
Mejor respuesta

'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
Descartar
Mejor respuesta

Hi,

you can use :

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

Thanks.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 23
20821
8
jul 24
16243
2
dic 23
19943
0
mar 15
8347
1
mar 15
7106