跳至內容
選單
此問題已被標幟
2 回覆
37072 瀏覽次數

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
20992
8
7月 24
16436
2
12月 23
20085
0
3月 15
8530
1
3月 15
7291