Odoo Help


How to do the field "opt_out" invisible in partner.form ?

Anne-Sylvie Burri
on 10/30/13, 6:34 AM 912 views

Hi everybody,

I'm trying to do the field "opt_out" invisible in partner.form but can't find the correct xml syntax.

Maybe someone could help me ?

Thanks in advance.


i think you should use the attrs tag invisible attribute.

on 10/31/13, 7:08 AM
Anne-Sylvie Burri
On 11/1/13, 7:18 AM

Here is the correct syntax :

<record model="ir.ui.view" id="res_partner_opt_out_form">
            <field name="name">res.partner.opt.out.form</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="email_template.res_partner_opt_out_form"/>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <field name="opt_out" position="replace">
                    <field name="opt_out" invisible="1"/>

Hope it will be usefull

On 10/30/13, 9:58 AM


In the email_template module go to the file res_partner_view.xml.

write the following line:

<field name="opt_out" invisible="1"/>

Instead of below line :

<field name="opt_out"/>


Thanks for your answer. But I would like do that with inherit process. I don't understand because the field is inside the module "base" but when I call it in my xlm file it appear an error...

J.-M. Burri - Bureau ing.-conseils informatique, Anne-Sylvie Burri
on 10/31/13, 6:16 AM

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.


Odoo Training Center

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

Test it now

Question tools

0 follower(s)


Asked: 10/30/13, 6:34 AM
Seen: 912 times
Last updated: 3/16/15, 8:10 AM