도움말

4

search method : "is not null" criteria

Avatar
Clément THOMAS

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)

아바타
작성취소
2 답변
2
Avatar
nazarii
최고의 답변

'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)
아바타
작성취소
1
Avatar
Borni DHIFI
최고의 답변

Hi,

you can use :

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

Thanks.

아바타
작성취소