[WIP]survey_dropdown_choice
This commit is contained in:
13
survey_dropdown_choice/models/survey_question.py
Normal file
13
survey_dropdown_choice/models/survey_question.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class SurveyQuestion(models.Model):
|
||||
_inherit = "survey.question"
|
||||
|
||||
display_dropdown = fields.Boolean(
|
||||
string="Display as searchable dropdown",
|
||||
help="Render the suggested answers as a searchable dropdown instead of "
|
||||
"a list of radio buttons. Only relevant for 'Multiple choice: only "
|
||||
"one answer' questions. The respondent can type in the dropdown to "
|
||||
"filter the available options.",
|
||||
)
|
||||
Reference in New Issue
Block a user