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.


adding relation in res_partner form

on 10/7/16, 3:34 AM 42 views


i explain my problem: i want to complete the society form which there is many2one field with res_partner relation which represent principal contact . At the end of the form there is a notebook which one2many relation to res_partner to add contacts of the society. In the contact form there is a boolean field which add to select if the contat is the principal. I want that if the field is selected put automatically in the society form(above) the contact_id .

Do you think there is a solution for that

thanks a lot

Sorry I am confused,

Which field is selected to put automatically in the society form (the boolean)?

And where in the society form do you want the contact_id (in the principal contact or in the society contacts one2many)?

Mai Ecarde
on 10/9/16, 8:39 PM
On 10/10/16, 3:15 AM

yes i know i would use on change methode but with wich comportment i want the contact_id in the society contact many2one field which refer to the selected boolean field in the contact form 

Hengky Zhang
On 10/7/16, 6:48 AM

you can use on_change method

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/7/16, 3:34 AM
Seen: 42 times
Last updated: 10/10/16, 3:15 AM