Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
6767 Visninger

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
Kassér
Bedste svar

Hello ! I use this and it work 

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


Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
mar. 15
4894
1
maj 16
15820
2
sep. 20
5860
1
jul. 18
11032
1
apr. 16
4243