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)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
1
de des. 23
|
20825 | ||
|
8
de jul. 24
|
16250 | ||
Using search count
Solved
|
|
2
de des. 23
|
19948 | |
|
0
de març 15
|
8348 | ||
|
1
de març 15
|
7109 |