According to the documentation, it is possible to assign the result of a function as default value of a field. But is it possible to assign the value of another field of the same model as default value?
display_name = fields.Char(string='Display Name', default=name, translate=True)
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
|Asked: 11/16/16, 6:09 AM|
|Seen: 92 times|
|Last updated: 11/16/16, 7:42 AM|