In Contacts the searchbar just searches by different fields (name, tags, address...). Is there any way to seach generically and not by a specific field?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
Hi,
Customize the Search View (search.xml)
If you want advanced filters but still keep the default search behavior, you can add a generic search filter in XML:
<record id="view_partner_search_custom" model="ir.ui.view">
<field name="name">res.partner.search.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='name']" position="after">
<filter string="Generic Search" name="generic" domain="['|','|','|',
('name', 'ilike', self),
('email', 'ilike', self),
('phone', 'ilike', self),
('street', 'ilike', self)]"/>
</xpath>
</field>
</record>
This adds a generic filter in the search panel so users can quickly search across multiple fields.
Hope it helps
Odoo default search (like in the list or kanban views) is field-based, meaning it searches across indexed fields defined in name, search, or _rec_name.
Generic or full-text search across all fields is not supported out-of-the-box in standard Odoo for performance reasons.
You can enable more flexible search using:
- Custom search methods (_search_) in Python models.
- PostgreSQL full-text search with custom SQL or external modules (e.g., searchable_text).
- Third-party addons like web_advanced_search or Elasticsearch integration.
For end-users: Use filters, group by, and custom search fields in the UI to make queries more intuitive.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Jul 25
|
1276 | ||
|
3
Nov 24
|
4849 | ||
'Contacts require a name' error
Diselesaikan
|
|
3
Nov 23
|
7614 | |
upload bulk contacts
Diselesaikan
|
|
1
Apr 23
|
2671 | |
|
1
Jun 22
|
3217 |