Skip to Content
Menu
This question has been flagged
2 Replies
37082 Rodiniai

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)

Portretas
Atmesti
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)
Portretas
Atmesti
Best Answer

Hi,

you can use :

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

Thanks.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
gruod. 23
20999
8
liep. 24
16443
2
gruod. 23
20092
0
kov. 15
8532
1
kov. 15
7296