From 1110ea43a417c63df75b489b67e0c43cd51078de Mon Sep 17 00:00:00 2001 From: yhu-odoo Date: Fri, 6 Dec 2019 14:17:43 +0000 Subject: [PATCH] [FIX] survey: get certification of failure back PURPOSE As Certification PDF can be called on failed user input, generate a certification of failure in that case. SPECIFICATIONS In the survey_report_templates.xml, when user_input.quizz_passed is false, a certification of failure can be generated. This commit is actually about applying again 57fef7c11cea206da4c4919781405913ba1d568f that has been lost while performing major cleaning in survey templates. LINKS PR #42811 Task ID 2148449 closes odoo/odoo#43274 X-original-commit: 6206e0e6213be14a977db028b8f4dc4f755bf11c Signed-off-by: Thibault Delavallee (tde) --- .../survey/views/survey_report_templates.xml | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/addons/survey/views/survey_report_templates.xml b/addons/survey/views/survey_report_templates.xml index 85d8e933006..e820945bb2f 100644 --- a/addons/survey/views/survey_report_templates.xml +++ b/addons/survey/views/survey_report_templates.xml @@ -14,12 +14,17 @@
-
This Certificate is Presented to
-
+
+
This Certificate is Presented to
+
-
- is proud to award this certificate to - for gratuating from . +
+ is proud to award this certificate to + for gratuating from . +
+
+
+
Certification Failed
@@ -46,13 +51,18 @@

-
This Certificate is Presented to
-
-
+
+
This Certificate is Presented to
+
+
-
- is proud to award this certificate to - for graduating from . +
+ is proud to award this certificate to + for graduating from . +
+
+
+
Certification Failed