summaryrefslogtreecommitdiff
path: root/addons/survey/data/mail_template_data.xml
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2019-02-28 14:45:15 +0000
committerAurélien Warnon <awa@odoo.com>2019-03-11 10:46:11 +0000
commit7070fa32190124b1ca06b6aa3d857ca2ae148d62 (patch)
tree6c9129fcb72d3b393e78c22daebd6e62f8d650cb /addons/survey/data/mail_template_data.xml
parentdb53057528cd0c0c1a7794b2e57b0e355d4e58ec (diff)
[IMP] survey: rename 'Survey' to 'Certification' when relevant
Purpose ======= This commit reworks some views to rename 'Survey' to 'Certification' for a better visual integration of the new certification flow.
Diffstat (limited to 'addons/survey/data/mail_template_data.xml')
-rw-r--r--addons/survey/data/mail_template_data.xml12
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: