[FIX] website_slides_survey: fix certificate preview
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) <awa@odoo.com>
This commit is contained in:
committed by
Aurélien Warnon
parent
b954cae9a9
commit
69f65136b4
@@ -31,6 +31,9 @@
|
||||
<xpath expr="//a[@name='o_wslides_list_slide_add_quizz']" position="attributes">
|
||||
<attribute name="t-if">channel.can_upload and not slide.question_ids and slide.slide_type != 'certification'</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//a[@t-if='channel.can_upload']" position="attributes">
|
||||
<attribute name="t-attf-class">#{'d-none' if slide.slide_type == 'certification' else ''}</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="course_slides_list_inherit_survey" inherit_id="website_slides.course_slides_list">
|
||||
|
||||
Reference in New Issue
Block a user