Skip to Content
Menu
This question has been flagged
1 Reply
5867 Views

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 ??  
Avatar
Discard
Best Answer

Hello ! I use this and it work 

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


Avatar
Discard
Related Posts Replies Views Activity
1
Mar 15
4231
1
May 16
14758
2
Sep 20
4774
1
Jul 18
9815
1
Apr 16
3402