跳至內容
選單
此問題已被標幟
1 回覆
4861 瀏覽次數

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.

頭像
捨棄
最佳答案

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


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 15
8324
2
6月 25
2438
0
7月 23
2365
1
4月 23
10258
0
10月 22
2909