تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
8623 أدوات العرض

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
يوليو 23
1864
2
أبريل 21
15417
0
ديسمبر 16
2572
5
أكتوبر 16
12416
2
نوفمبر 15
10581