Odoo Help


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

on 9/4/15, 4:11 AM 579 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.

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