Odoo Help


How to auto fill a particular field

on 3/16/13, 1:30 AM 1,547 views

Hello, I have a field called department and another field called head of department,

I want to auto filled the head of department if a department is selected from the list of the departments.

Please how do I implement that in OpenERP 7.0?


Fabrice Henrion (fhe)

--Fabrice Henrion (fhe)--
Fabrice Henrion (fhe)
| 7 7 8
San Francisco, United States
--Fabrice Henrion (fhe)--

Director Odoo USA

Fabrice Henrion (fhe)
On 3/16/13, 1:45 AM

This has to do with the on_change function. It is very widely used in many modules. I would suggest you look at the code of one of those to understand how it works. As an example, you can see that if you create a customer and specify a State for its address, the country will be populated automatically.

Thanks but please can you give me examples of the modules in which it was used because am new to OpenERP?

on 3/16/13, 2:02 AM

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 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.


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

0 follower(s)


Asked: 3/16/13, 1:30 AM
Seen: 1547 times
Last updated: 3/16/15, 8:10 AM