Odoo Help

Welcome!

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.

0

Modify field behaviour in Inherited view

By
Eric Geens
on 6/24/14, 5:41 PM 479 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
1

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

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

Hi

Try this code will help you 

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

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

1 follower(s)

Stats

Asked: 6/24/14, 5:41 PM
Seen: 479 times
Last updated: 3/16/15, 8:10 AM