Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6747 Widoki

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 ??  
Awatar
Odrzuć
Najlepsza odpowiedź

Hello ! I use this and it work 

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 15
4884
1
maj 16
15800
2
wrz 20
5842
1
lip 18
11007
1
kwi 16
4232