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

the default of a field is the value of another field

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

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

example:

classA :

field a,

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

0
Weste
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/4/14, 9:35 AM
Seen: 508 times
Last updated: 3/16/15, 8:10 AM