summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2019-02-01 07:12:43 +0000
committerAurélien Warnon <awa@odoo.com>2019-02-06 10:34:43 +0000
commit445541989f9dc094bf81201a715abe0a68ed1c63 (patch)
tree6bb45ba7d9dcaa52038dba4f1365e0885ec8c82e /addons/web/static/src/js/views/basic/basic_model.js
parentafb1abbb60e5cdc4f76ab7b5a1b54b5e8a9283d5 (diff)
[IMP] survey: add randomization and survey layout selection
Task #1902306 Purpose ======= The "page" concept is now only present in the user interface. Surveys are split in "sections" that have two purposes: - Organizing a (long) survey/certification - Allow to pick a random questions count for that section (more information here after) On the user interface, based on the questions_layout field, surveys are displayed: - On a single page, where sections still appear but are only used as visual separations - On multiple pages, having one page per section (this matches the previous behavior) - On multiple pages, having one page per *question* On top of that page concept, this commit added randomization for the survey questions. The randomization mechanism will take X questions per section of the survey. The survey.user_input is initialized with the selected questions to be sure to keep that set of questions and avoid showing a new set of questions every time the user refreshes the page. This also allows to easilly go back and know which question we have to show.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions