Odoo Help


Modify field behaviour in Inherited view

Eric Geens
on 6/24/14, 5:41 PM 840 views

I have added some fields to res.partner and made an inherited view that is working fine. I was wondering whether I can change the behaviour of these fields within the same xpath-expression. 

What I've done : positioned the field 'Age' after the 'Title'-field in res.partner

What I want to do next : in the same view / xpath expression : hide the field 'Age' (Invisible) if condition 'Is_company' = True 

Can this be done ? And if so, how ?

(Sorry, not enough karma to link code... but I think the question is quite straightforward.)

Thanks Jagdish ! Works as a charm.

TPG SPRL, Eric Geens
on 6/25/14, 7:25 AM

Jagdish Panchal

--Jagdish Panchal--

| 5 4 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 6/25/14, 12:18 AM


Try this code will help you 

<field name="age" attrs="{'invisible': [('Is_company','=',True)]}"/>

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: 6/24/14, 5:41 PM
Seen: 840 times
Last updated: 3/16/15, 8:10 AM