跳至內容
選單
此問題已被標幟
1 回覆
8795 瀏覽次數

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

頭像
捨棄
作者 最佳答案

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>
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 23
1978
2
4月 21
15643
0
12月 16
2702
5
10月 16
12581
2
11月 15
10795