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)
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.
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
What is 'better': search or browse?
Rezolvat
|
1
dec. 23
|
23178 | ||
|
8
iul. 24
|
18919 | |||
|
Using search count
Rezolvat
|
2
dec. 23
|
22072 | ||
|
0
mar. 15
|
10488 | |||
|
1
mar. 15
|
9433 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.