Odoo Help


Concatenate 2 fields for default value in context

Victor Godayer
on 3/6/15, 3:08 AM 755 views



I would like to concatenate 2 fields in a view context as follow :

context="{'default_name' : '%s -%s'%(FIELD1,FIELD2) }"


I know it is not the good syntax, but I could not find any clue about this.

Is it at least possible ?

Otherwise what would be the best approach to do such thing ?

Thank you for your help

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

2 follower(s)


Asked: 3/6/15, 3:08 AM
Seen: 755 times
Last updated: 9/6/17, 6:50 PM