Odoo Help

Welcome!

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.

0

Display attributes in a relationship many2one

By
Francisco Tobar
on 10/21/15, 8:50 AM 392 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

--Akhil P Sivan--
3423
| 5 3 6
Kochi, India
--Akhil P Sivan--

Interested in exploring Odoo both technically & functionality wise.

email-id : akhilpsivan01@gmail.com

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.

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)

Stats

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