コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
37031 ビュー

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)

アバター
破棄
最善の回答

'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)
アバター
破棄
最善の回答

Hi,

you can use :

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

Thanks.

アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 23
20968
8
7月 24
16375
2
12月 23
20055
0
3月 15
8496
1
3月 15
7239