Odoo Help

1

Concatenate 2 fields for default value in context

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

Hi,

 

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

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.

Register

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)

Stats

Asked: 3/6/15, 3:08 AM
Seen: 357 times
Last updated: 3/16/15, 8:10 AM