Odoo Help


How to invisible field in tree view by check box?

Mohammed Khamis
on 3/7/15, 9:05 AM 1,832 views

I try to invisible some field by clicking check box but I don't know how can I make it .

please help me.

thank you so much

On 3/8/15, 4:02 PM

Yes, it is possible. Try this (in xml):

<field name="my_checkbox"/>
<field name="my_foo1" attrs="{'invisible':[('my_checkbox','=',False)]}"/>
<field name="my_foo2" attrs="{'invisible':[('my_checkbox','!=',False)]}"/>

or like this:

<field name="my_foo3" invisible="context.get('my_checkbox',False)"/>


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

1 follower(s)


Asked: 3/7/15, 9:05 AM
Seen: 1832 times
Last updated: 4/11/16, 9:48 AM