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: RENAME QUIZ_SCORE ON SURVEY.USER_INPUT On survey.user_input, quiz_score field to scoring_percentage ``quiz_score`` field name is related to the old "quiz" behavior of surveys that is replaced by certifications and scoring mechanisms. Let us propagate the renaming, beginning with a ``scoring_`` prefix. SPECIFICATIONS: RENAME QUIZZ_PASSED ON SURVEY.USER_INPUT on survey.user_input, rename quizz_passed field to scoring_success ``quizz_passed`` field name is related to the old "quiz" behavior of surveys that is replaced by certifications and scoring mechanisms. Let us propagate the renaming, beginning with a ``scoring_`` prefix. SPECIFICATIONS: RENAME TOKEN ON SURVEY.USER_INPUT on survey.user_input, rename token field to access_token Survey user input model holds two token field. One is used to distinguish a pool of attempts linked to a given invite: ``invite_token``. The other one is used to control access to a specific user input. It means that ``invite_token`` indicates a set of user inputs and each of them is accessed through its own ``token``. To be coherent with other naming in odoo this latter field is renamed to ``access_token``. 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
13 lines
500 B
XML
13 lines
500 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo><data noupdate="0">
|
|
<record id="website_slides.badge_data_certification" model="gamification.badge">
|
|
<field name="is_published" eval="True"/>
|
|
</record>
|
|
<record id="website_slides.badge_data_certification_goal" model="gamification.goal.definition">
|
|
<field name="domain">[
|
|
('survey_scoring_success', '=', True),
|
|
('slide_id.slide_type', '=', 'certification')
|
|
]</field>
|
|
</record>
|
|
</data></odoo>
|