Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3880 Prikazi

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

Avatar
Opusti
Best Answer

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 !

Avatar
Opusti
Avtor

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

you're welcome :)

Related Posts Odgovori Prikazi Aktivnost
1
jul. 25
1086
1
jul. 25
1696
5
maj 25
19439
0
apr. 25
1649
1
apr. 25
2041