Skip to Content
Menu
This question has been flagged
1 Reply
3347 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??

Avatar
Discard
Best Answer

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.

Avatar
Discard
Related Posts Replies Views Activity
1
Jul 24
341
1
Jan 24
1684
2
Mar 23
1022
3
Jun 20
8728
2
Mar 20
6922