Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
8676 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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>
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 23
1897
2
thg 4 21
15478
0
thg 12 16
2584
5
thg 10 16
12439
2
thg 11 15
10628