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
8718 Widoki

How can I edit the search view to search in all fields (Name, City, ZIP, e.g.) of my contacts?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Create an inherited view of the res.partner.select view and add one line per field that you like to search. For example:

<?xml version="1.0"?>
<filter string="Country" position="after">
<filter string="City" context="{'group_by': 'city'}"/>
<field name="street" filter_domain="[('street','ilike',self)]"/>
<field name="zip" filter_domain="[('zip','ilike',self)]"/>
<field name="city" filter_domain="[('city','ilike',self)]"/>
<field name="comment" filter_domain="[('comment','ilike',self)]"/>
</filter>
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 23
1932
2
kwi 21
15554
0
gru 16
2630
5
paź 16
12489
2
lis 15
10685