Odoo Help


the default of a field is the value of another field

layal abishalhla
on 4/4/14, 9:35 AM 560 views

i need to set the default of a field the value of another field . any help?


classA :

field a,

field b, what i want is to give 'b' the value of 'a' by default

On 4/4/14, 10:12 AM

Hi, Do you want to do that only when you create a new record, or do you want to change b each time you change a? If it's only when you create a new record, you just have to set the same _defaults for b as for a. If it's each tim you change a, you have to add an on_change attribute on the a field in your view. Regards

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: 4/4/14, 9:35 AM
Seen: 560 times
Last updated: 3/16/15, 8:10 AM