summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2020-02-28 13:27:17 +0000
committerThibault Delavallée <tde@odoo.com>2020-03-06 10:29:50 +0000
commit2d499c0236927f010f47a4cb5f9908c770b1d0db (patch)
tree33a57709311f51ca2495defa43de15ffbeb020a9 /addons/web/static/src/js/fields/basic_fields.js
parent3968bed23947722f92d1c8679b9a5955319a0cbc (diff)
[IMP] survey: integrate conditional questions in session mode
Purpose ======= This commit makes the live session mode work with conditional question. The point is to determine which question to display next. As multiple users are 'voting' for answers of the same questions, the way to determine the next question to display is to keep only the most voted answer. The most voted answer will be the only one to trigger the linked conditional question. E.g.: considering - following survey configuration: - Q1: A1, A2 - Q2: triggered by Q1-A1 - Q3: triggered by Q1-A2 - following user inputs: - U1: A1 selected - U2: A2 selected - U3: A2 selected The next question displayed to ALL users will be Q3. Note: If U4 had selected A1, the next question would have been Q2 as when there is an equality, we select the first one. Link ==== Task ID: 23509 PR #44950
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions