14 lines
489 B
Python
14 lines
489 B
Python
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.",
|
|
)
|