Odoo Help


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.


Get the value of one selection field

on 6/3/15, 12:13 PM 573 views

How I affect the name of a field section item ('A') to a char field and not the value ('a')

field1: fields.selection([('a','A')], 'Field1'),
field2: fields.char('Field2'),

return { value{'field2' : field1.!!!}}

John Touba
On 6/4/15, 11:08 AM

If you want the value of the selection field you should use :

(Example for ir model)


For you , you should use 


return a dictionary with all your data (key:value)

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

1 follower(s)


Asked: 6/3/15, 12:13 PM
Seen: 573 times
Last updated: 6/4/15, 11:08 AM