summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2019-12-03 14:17:50 +0000
committerThibault Delavallée <tde@odoo.com>2019-12-05 15:21:28 +0000
commita6e9ee91d1062f69518ad0c8a43000d3e2c6b95d (patch)
tree94598718bd8e7b7f6cadff6f565b93eb942a5cfa /addons/web/static/tests/fields/basic_fields_tests.js
parent0406b7049e7d00f710d38b14b5af4501387cf462 (diff)
[REF] survey: on survey.user_input{.line}, reorganize and clean model code
PURPOSE As new features are about to land in survey, notably live interactions [1] and new survey building [2] performing a pre cleaning is necessary. In this PR we clean survey models by: removing unnecessary fields, cleaning some code and finally renaming models. SPECIFICATIONS In survey.user_input.line, clean code about constraints. Purpose is to make it easier to read and understand. Code creating user input lines is moved from survey.user_input.line model to survey.user_input. Indeed it is now based on a user_input record, and create answer line related to a question, based on values coming from controllers (and therefore frontend). It makes more sense to delegate that code to the user_input model itself that creates its lines. Code is also rewritten to be cleaner and easier to read. Code computing statistics on user input records is moved from survey model to user_input model, where it belongs. Missing translation marks are added because translations matter. LINKS [0] Related to Task ID 2061901 (survey models cleaning and preparation) [1] Task ID 1972640 (live interactions) [2] Task ID 2119587 (new frontend for building surveys) PR #40765
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions