You should first design a model(class) with its _columns. Only then, The class/model will be used as a many2one.
In your case, you should make sure to have hr.institude defined first. Later on, your new class can have many2one in this fashion:
'institute_id': fields.many2one('hr.institute', 'Institute')
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
|Asked: 8/15/14, 4:12 AM|
|Seen: 1025 times|
|Last updated: 3/16/15, 8:10 AM|