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.
13 lines
399 B
Python
13 lines
399 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import common
|
|
from . import test_survey
|
|
from . import test_survey_flow
|
|
from . import test_certification_flow
|
|
from . import test_survey_invite
|
|
from . import test_survey_security
|
|
from . import test_survey_randomize
|
|
from . import test_survey_ui
|
|
from . import test_survey_compute_pages_questions
|