Skip to content
Snippets Groups Projects
Commit 57fef7c1 authored by Nicolas Martinelli's avatar Nicolas Martinelli
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.

opw-2049481

closes odoo/odoo#35769

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent a32aa05a
No related branches found
No related tags found
No related merge requests found
......@@ -15,12 +15,15 @@
<h2>
<span t-esc="user_input.partner_id.name or user_input.email"/>
</h2>
<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>
<h3>
<span t-field="user_input.survey_id.display_name"/>
</h3>
<p>
<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"/>
</p>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment