Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
6769 Ansichten

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
Verwerfen
Beste Antwort

Hello ! I use this and it work 

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


Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
März 15
4894
1
Mai 16
15821
2
Sept. 20
5860
1
Juli 18
11033
1
Apr. 16
4244