Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5120 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
set 15
8678
1
ago 25
2924
1
ago 25
3493
2
giu 25
2872
1
set 25
10803