Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
36896 Widoki

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)

Awatar
Odrzuć
Najlepsza odpowiedź

'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)
Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

you can use :

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

Thanks.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 23
20847
8
lip 24
16282
2
gru 23
19969
0
mar 15
8388
1
mar 15
7119