Skip to content
Browse files

[FIX] survey: certificate of failure

- Take a quizz survey, and fail it
- Go to Answers
- Print the Certification

Even if the quizz was failed, the certification can be printed.

There is no option to prevent printing a PDF, therefore we need to print
a different template.


closes #35769

Signed-off-by: Nicolas Martinelli (nim) <>
  • Loading branch information...
nim-odoo committed Aug 16, 2019
1 parent a32aa05 commit 57fef7c11cea206da4c4919781405913ba1d568f
Showing with 5 additions and 2 deletions.
  1. +5 −2 addons/survey/views/survey_report_templates.xml
@@ -15,12 +15,15 @@
<span t-esc=" or"/>
<p>Successfully achieved</p>
<!-- You should not print a certificate if failed :) -->
<p t-if="user_input.quizz_passed">Successfully achieved</p>
<p t-if="not user_input.quizz_passed">Successfully failed</p>
<span t-field="user_input.survey_id.display_name"/>
<strong>Date of Certification:</strong>
<strong t-if="user_input.quizz_passed">Date of Certification:</strong>
<strong t-if="not user_input.quizz_passed">Date of Failure:</strong>
<span t-field="user_input.create_date"/>

0 comments on commit 57fef7c

Please sign in to comment.
You can’t perform that action at this time.