You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR ams to improve speed reward logic in the survey. Users
will now have the possibility to specify a default time limit, as well
as custom time limits on each question.
To keep things simple, the time limit on the question is used for both
the "real" limit and the speed-related part of the score, both in the
live session setting only.
Modifying the time limit set on the survey should update all questions
that are not customized. Here is an example of the desired behavior:
(See `test_survey_time_limits_config`)
1. A time limit is set to 30s on a survey where no time configuration
was done before => All questions are now rewarded with extra point
after 30s.
2. After the previous step, question `A` 's time limit is overridden to
60s. Only this question will have 60s. (a flag for this override is
also set).
3. Question `B`'s time limit is set to 20 sec, the same as above
occurs.
4. Question `C` is set to "no time limit" (also an override).
4. At this point, the time limit at the survey level is reduced from 30
to 20s. This will make `B` not overridden anymore, while
* A is still at 60s
* C is still not limited (and no time-related rewards)
See technical details in the individual commits.
Task-2803327
closesodoo#115141
Related: odoo/enterprise#56810
Related: odoo/upgrade#5457
Signed-off-by: Thibault Delavallee (tde) <[email protected]>
Co-authored-by: Andro Gvivradze <[email protected]>
0 commit comments