Odoo Help


on selecting many to one relation value how to changg the fields visibility

on 9/4/15, 4:11 AM 345 views

Hi i have two models (item type and item with many to one relation) when i select item type as book from dropdown i need to display two fields, when i select CD from dropdown i need to display other two field. is there any way ?

On 9/4/15, 7:31 AM

thanks for the reply can you please tell me how to make a filed invisible from the python code ?


Hi, In the above scenario you can set Onchange Method for item type field and in Onchange Method you need to set the invisibility attribute to the required fields on the selected item i.e.Book or CD.

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 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: 9/4/15, 4:11 AM
Seen: 345 times
Last updated: 9/4/15, 7:31 AM