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

How to bring combobox answer type in survey question?

By
MGL
on 10/31/16, 3:30 AM 202 views

Hi, I have created a survey in odoo10 version and i need to create a question with option combobox.
How can do this... can any one help me....  Thanks Everyone.

0
shameem@aχoncoms
On 10/31/16, 7:34 AM

Do you mean selection field in odoo ? see the example

Write In python file

question5 =  fields.Selection([('internal_value1', 'Value2'), ('internal_value2', 'Value2'),('internal_value3', 'Value3'), ], string='Question 5',)

Write in xml

<field name="question5"/>

It will display as a combo box


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)

Stats

Asked: 10/31/16, 3:30 AM
Seen: 202 times
Last updated: 11/1/16, 4:32 AM