Skip to Content
Menu
This question has been flagged
1 Atsakyti
6758 Rodiniai

Hi guys , 
I'm trying to search the record of Active and in active customers in res.partner model

 in ORM we can Search By this Expression 

['|', ('active', '=', True), ('active', '=', False)]

but in web service a i can't search in one expression , 
I need to search active customers in and then inactive customers , then need to combine all these records , 
is there is any way like  ORM in web service ??  
Portretas
Atmesti
Best Answer

Hello ! I use this and it work 

 inParams.push(['|', ['active', '=', true], ['active', '=',false]]);


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 15
4890
1
geg. 16
15816
2
rugs. 20
5855
1
liep. 18
11025
1
bal. 16
4243