Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
9026 Zobrazení

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

Avatar
Zrušit
Autor Nejlepší odpověď

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>
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvc 23
2176
2
dub 21
15989
0
pro 16
2947
5
říj 16
12785
2
lis 15
11127