Odoo Help


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.


Add attrs using relation field

on 10/22/14, 6:19 AM 557 views


I am having two classes (say class1, class2). In class 1, I am having two fields (say cf1, name) in which cf1 is a check box and name is a textbox. In class2, I am having two fields (say cf12, cf22) in which cf12 is a many2one field in relation with class1. I will be getting all the name values from class1  in the drop down of cf12. I need to make cf22 visible if I select one value in cf12 and whose cf1 value is checked (cf1 = True for that particular cf12 value.).

That means I have to compare with cf1 value of the selected item in cf12 and make cf22 visible/invisible.

Please help me with a solution.




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)


Asked: 10/22/14, 6:19 AM
Seen: 557 times
Last updated: 3/16/15, 8:10 AM