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.

1

Concatenate 2 fields for default value in context

By
Victor Godayer
on 3/6/15, 3:08 AM 333 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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