Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8716 มุมมอง

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>
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 23
1928
2
เม.ย. 21
15550
0
ธ.ค. 16
2630
inherit search view in openerp7 แก้ไขแล้ว
5
ต.ค. 16
12479
List view group by date format change แก้ไขแล้ว
2
พ.ย. 15
10676