Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
37055 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
груд. 23
20978
8
лип. 24
16405
Using search count Вирішено
2
груд. 23
20077
0
бер. 15
8510
1
бер. 15
7266