[ADD] survey_dropdown_simple_choice
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m35s
tests / test (pull_request) Successful in 1m14s

Display "Multiple choice: only one answer" (simple_choice) survey
questions as a dropdown list instead of radio buttons, per question.

The native radios are kept (hidden by CSS) and still carry the answer:
the dropdown only clicks them, so validation, conditional questions,
"Other" comment, auto-submit and AJAX submit are handled natively.
In review / print mode, only the selected and correct answers are
displayed. Native rendering is kept when suggested answers contain
images.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 19:31:28 +02:00
parent 2835e2d2be
commit 9d55588f18
10 changed files with 242 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * survey_dropdown_simple_choice
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-20 17:08+0000\n"
"PO-Revision-Date: 2026-10-20 17:08+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: survey_dropdown_simple_choice
#: model:ir.model.fields,field_description:survey_dropdown_simple_choice.field_survey_question__display_dropdown
msgid "Display as dropdown list"
msgstr "Afficher en liste déroulante"
#. module: survey_dropdown_simple_choice
#: model:ir.model.fields,help:survey_dropdown_simple_choice.field_survey_question__display_dropdown
msgid ""
"Display this single choice question as a dropdown list instead of radio "
"buttons. Ignored if the suggested answers contain images."
msgstr ""
"Affiche cette question à choix unique sous la forme d'une liste déroulante "
"au lieu de boutons radio. Ignoré si les réponses proposées contiennent des "
"images."
#. module: survey_dropdown_simple_choice
#: model:ir.model.fields,field_description:survey_dropdown_simple_choice.field_survey_question__smart_search
msgid "Smart Search"
msgstr "Recherche intelligente"
#. module: survey_dropdown_simple_choice
#: model:ir.model,name:survey_dropdown_simple_choice.model_survey_question
msgid "Survey Question"
msgstr "Question du sondage"