跳至内容
菜单
此问题已终结
2 回复
36926 查看

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
20893
8
7月 24
16313
2
12月 23
19997
0
3月 15
8423
1
3月 15
7154