Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
36981 Tampilan

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
Buang
Jawaban Terbai

'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
Buang
Jawaban Terbai

Hi,

you can use :

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

Thanks.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Des 23
20946
8
Jul 24
16352
2
Des 23
20040
0
Mar 15
8469
1
Mar 15
7217