Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
37343 Prikazi

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
Opusti
Best Answer

'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
Opusti
Best Answer

Hi,

you can use :

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

Thanks.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 23
21264
8
jul. 24
16747
2
dec. 23
20335
0
mar. 15
8807
1
mar. 15
7527