Odoo Help

Welcome!

This community 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.

0

[SOLVED] Search a client by email adress

By
Selverine
on 4/4/15, 5:10 AM 483 views

Hello!

Stupid question but...

The majority of time, I am searching a client by his email adress and not his name.

Or, on the searching windows, I have choose just between Name and Tag.

So, I need to go to Advanced Search - email and then I can search per email.

Is it possible to have a choose between Name, Tag and email directly? In order not go every time in Advanced Search?


Thank you a lot,


Selverine

1
Ajeng Shilvie
On 4/4/15, 5:52 AM

try this in your xml file :

you have to inherit current res.partner search view, like this :

    <record id="view_res_partner_custom" model="ir.ui.view">
            <field name="name">view.res.partner.custom</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="email"/> 
                </field>
            </field>
        </record>

hope it works !

It works ;-). Thank you a lot for your fast and good answer!

Selverine
on 4/4/15, 6:12 AM

you're welcome :)

Ajeng Shilvie
on 4/4/15, 6:19 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/4/15, 5:10 AM
Seen: 483 times
Last updated: 4/4/15, 6:12 AM