diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2019-03-11 13:07:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-11 13:07:38 +0100 |
| commit | 0c1eff0d95869b9b4eab8b34e65be770e49fdd2b (patch) | |
| tree | 6c9129fcb72d3b393e78c22daebd6e62f8d650cb /addons/survey/data/mail_template_data.xml | |
| parent | 57004e22b04264cef9ec1be8fda9a3a0f24b2b70 (diff) | |
| parent | 7070fa32190124b1ca06b6aa3d857ca2ae148d62 (diff) | |
[MERGE][IMP] survey: apply small tweaks on survey views (certification)
Purpose
======
This merge implies several small tweaks on the survey views, mainly to add support for the new certification fields.
Show the quizz_passed field in the answers views
-------------------------------------------------------------------
The quizz_passed field is now more important because it determines whether
a certification has been successfully taken or not.
The quizz_passed field is added in:
- The search view of user_input
- The list view of user_input
- The form view of user_input (along with the score)
Fix survey statistics computation
-------------------------------------------
Fix the shared dict in the survey statistics computation that
causes surveys to incorrectly share the same stats when computed in batch.
Add a stat button on survey to show the certified count
------------------------------------------------------------------------
Add a stat button on the survey form view showing the amount
of answers with the quizz_passed field set to True.
It allows to quickly see people that have been granted the certification.
On click, the stat button redirects to the answers list view with the "Quizz passed"
filter defaulted to True.
Task-1936539
closes odoo/odoo#31467
Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Diffstat (limited to 'addons/survey/data/mail_template_data.xml')
| -rw-r--r-- | addons/survey/data/mail_template_data.xml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/addons/survey/data/mail_template_data.xml b/addons/survey/data/mail_template_data.xml index de05a6a22d9..222d1fbae11 100644 --- a/addons/survey/data/mail_template_data.xml +++ b/addons/survey/data/mail_template_data.xml @@ -9,11 +9,19 @@ <div style="margin: 0px; padding: 0px; font-size: 13px;"> <p style="margin: 0px; padding: 0px; font-size: 13px;"> Dear ${object.partner_id.name or 'participant'}<br/><br/> - We are conducting a survey and your response would be appreciated. + % if object.survey_id.certificate: + You have been invited to take a new certification. + % else: + We are conducting a survey and your response would be appreciated. + % endif <div style="margin: 16px 0px 16px 0px;"> <a href="${('%s?answer_token=%s' % (object.survey_id.public_url, object.token)) | safe}" style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;"> - Start Survey + % if object.survey_id.certificate: + Start Certification + % else: + Start Survey + % endif </a> </div> % if object.deadline: |
