Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
4936 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
sep. 15
8435
1
aug. 25
2528
1
aug. 25
3493
2
jun. 25
2490
1
apr. 23
10315