Odoo Help


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.


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

Anne-Sylvie Burri
on 10/30/13, 6:34 AM 649 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



| 3 2 6

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.

Skype : acespritech

Email : info@acespritech.com

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

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

0 follower(s)


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