跳至内容
菜单
此问题已终结
1 回复
3883 查看

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

形象
丢弃
最佳答案

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!

you're welcome :)

相关帖文 回复 查看 活动
1
7月 25
1088
1
7月 25
1696
5
5月 25
19440
0
4月 25
1650
1
4月 25
2042