Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
37092 Visninger

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
Kassér
Bedste svar

'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
Kassér
Bedste svar

Hi,

you can use :

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

Thanks.

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
dec. 23
21013
8
jul. 24
16443
2
dec. 23
20108
0
mar. 15
8534
1
mar. 15
7299