I need to make a relationship between two objects , when one of these objects therefore selected me bring this selected object attributes . A clear example would be: In the relationship between Bill and Customer ( Many2one ) , when in the form of invoice I select the client to which you want to bill me automatically bring the address is loaded cliente.
You need to use onchange for the many2one field of client on the invoice form. You may refer sale.py and sale_view.xml in the sale module to see how onchange is defined for Customer or partner_id field. You want to have the similar thing in invoice right?. Take a look at it n if you have some doubts I can help you.
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: 10/21/15, 8:50 AM|
|Seen: 388 times|
|Last updated: 10/22/15, 12:25 AM|