Odoo Help

0

Display attributes in a relationship many2one

By
Francisco Tobar
on 10/21/15, 8:50 AM 667 views

Hello!

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.

Any idea??

0
Akhil P Sivan
On 10/22/15, 12:25 AM

Hi,

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.

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.

Register

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)

Stats

Asked: 10/21/15, 8:50 AM
Seen: 667 times
Last updated: 10/22/15, 12:25 AM