Odoo Help

0
3 Answers
1
Pawan Sharma
7/12/18, 12:47 AM

Hello Seppe,

By using below condition you get value of your selection field.

dict(self.fields_get(allfields=['x_order_type'])['x_order_type']['selection'])['R']

Thanks.

0
Daniel Mattos
7/11/18, 4:01 PM

Try:


dict(object.fields_get(allfields=['field_name'])['field_name']['selection'])[object.field_name]

-1
Ajeet Yadav
8/23/16, 6:42 AM

you can get your answer on below link-

\https://www.odoo.com/forum/help-1/question/showing-the-string-value-of-a-selection-field-in-qweb-report-92686

Ask a Question
Keep Informed
1 follower(s)
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