Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6550 Vistas

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
Descartar
Mejor respuesta

Hello ! I use this and it work 

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


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 15
4708
1
may 16
15555
2
sept 20
5592
1
jul 18
10779
1
abr 16
4041