İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
36953 Görünümler

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
Vazgeç
En İyi Yanıt

'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
Vazgeç
En İyi Yanıt

Hi,

you can use :

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

Thanks.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ara 23
20902
8
Tem 24
16322
2
Ara 23
20009
0
Mar 15
8435
1
Mar 15
7168