Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4798 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Sep 15
8262
2
Jun 25
2343
0
Jul 23
2271
1
Apr 23
10167
0
Okt 22
2854