Odoo Help

2

1
3 Answers
4
Avatar

Akhil P Sivan India

--Akhil P Sivan--

5967
| 6 5 9
Kochi, India
--Akhil P Sivan--

Odoo Developer

email-id : akhilpsivan01@gmail.com

Akhil P Sivan India
10/14/15, 10:31 AM

Hi,

- If you are a developer, you can put the following code in xml file of your custom module:

<record id="customer_multi_search_view" model="ir.ui.view">
<field name="name">Search</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="phone" string="Phone" filter_domain="['|',('phone','ilike', self),('mobile','ilike', self)]"/>
</field>

</field>
</record>


- If you are not a developer, you can do the following steps from front end, to have the functionality in your current database:

1. Goto Settings >> Technical >> User Interface >> Views

2. Click on create a new view and only enter the following fields, rest keep default:

View Name : customer_multi_search_view

View Type : Search

Object : res.partner

Inherited View : res.partner.select

View inheritance mode : Extension View

Then under Architecture tab, paste the following:

<?xml version="1.0"?>
<field name="name" position="after">
<field name="phone" string="Phone" filter_domain="['|',('phone','ilike', self),('mobile','ilike', self)]"/>
</field>

3. Click Save and check in Customers


Hope this helps!

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now