Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4846 Prikazi

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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
sep. 15
8314
2
jun. 25
2433
0
jul. 23
2339
1
apr. 23
10246
0
okt. 22
2902