Is there any way to search ALL fields when i type in the search bar? Possibly by modifying the res.partner.select view?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
2018
Views
Take a look at the XML for the res.partner.select view, specifically this line:
<field name="name"
filter_domain="[
'|',
'|',
('display_name','ilike',self),
('ref','=',self),
('email','ilike',self)]"/>
It specifies that THREE fields will be searched at once.
You can add to this, making sure there is N-1 OR statements - the '|' - before your N domains for the fields you want to search.
Hello Patrick,
Try below link i think it's work for you.
<record id="partner_search_view" model="ir.ui.view"> <field name="name">res.partner.search.view</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_res_partner_filter"/> <field name="arch" type="xml"> <search> <field name="name"/> <field name="email"/> <field name="contact"/> </search> </field> </record>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up