From 69f65136b47384dd0bd52852ac99fdc3ec35d85b Mon Sep 17 00:00:00 2001 From: Nikunj Ladava Date: Mon, 16 Aug 2021 07:01:05 +0000 Subject: [PATCH] [FIX] website_slides_survey: fix certificate preview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit before this commit, it was raising an error while try to preview the certificate after this commit, prevent the preview of certificate, as it is not possible to set the preview of certificate task- 2623276 closes odoo/odoo#78911 X-original-commit: 8c51d83855566cb21578f18ebf460cead484aed2 Signed-off-by: Warnon Aurélien (awa) --- .../views/website_slides_templates_course.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/website_slides_survey/views/website_slides_templates_course.xml b/addons/website_slides_survey/views/website_slides_templates_course.xml index a616aee86ae..7c4fa611032 100644 --- a/addons/website_slides_survey/views/website_slides_templates_course.xml +++ b/addons/website_slides_survey/views/website_slides_templates_course.xml @@ -31,6 +31,9 @@ channel.can_upload and not slide.question_ids and slide.slide_type != 'certification' + + #{'d-none' if slide.slide_type == 'certification' else ''} +