Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4800 Vistas

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.

Avatar
Descartar
Mejor respuesta

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


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
sept 15
8266
2
jun 25
2347
0
jul 23
2278
1
abr 23
10169
0
oct 22
2856