diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2020-03-31 14:03:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-31 14:03:14 +0200 |
| commit | ca3b3aae28d65ae6aae1dc4da9c0a0d7d873d342 (patch) | |
| tree | bf5a0ae628283e7b2eee72a910d375a19fd23d60 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | 69e5f59005b403cb8624b21b0227830d58cf7b2a (diff) | |
| parent | 42cac02d17d29d6b4c80aaf1736a36f9a34cf228 (diff) | |
[MERGE][IMP] website_event_questions: allow 'free text' questions
PURPOSE
Allow "free text" questions in the event questions asked to attendees, in
addition to the existing "selection" type.
e.g: "What are your allergies?"
Rework existing reporting on Questions to ease implementation and give more
meaningful answers analysis.
SPECS
**Free Text Questions**
The implementation is heavily based on the modelisation we chose for the survey
module since the features become similar in terms of question types and inputs.
- Introduce a 'question_type' that is either 'simple_choice'
(= previous behavior) or 'text_box' that will contain the attendee text
answer.
- Rename the event.answer model to event.question.answer to make it more
obvious that it contains answer "suggestions" to a question of type
'simple_choice'.
- Introduce a 'event.user_input.line' that is an answer to a specific question
for a specific registration.
It works very similarly to 'survey.user_input.line' but it's not contained in
a 'user_input' model, it's directly linked to the registration using a
'user_input_line_ids' o2m field.
The frontend view has been adapted accordingly to display either a selection
input or a textarea based on the question type.
The frontend orm processing now takes in both answer types (id of suggested
answer or text input).
On the backend side, views have been adapted to display event questions and
attendee answers in a more convenient and logical manner.
**Questions Reporting**
Based on latest testing, the reporting on event questions was completely
unusable if you have more than a hundred questions (all events combined) and
needs to be refactored based on new specifications.
We dropped the current reporting and re-introduced a new one after the commits
that let us handled free text questions.
The new reporting allow users to conveniently analyze attendees answers on a
per-question basis. It shows:
- A graph view showing counts of each suggestions for simple_choice questions
- A pivot view showing registrations vs answers for simple_choice questions
- A tree view showing textual answers values for text_box questions
FIXIMP
When changing the event.type, configured event questions that have answers
(type 'simple_choice') new have their answers properly copied onto the event.
LINKS
Upgrade PR odoo/upgrade#799
Task ID 2189529
closes odoo/odoo#45497
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
