summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2020-06-02 13:51:56 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2020-06-03 08:38:35 +0000
commit5549fb82022ca05c52f588315fb69d2b82dd9d65 (patch)
treebee51c31306276649f8f14c36c6b4beca79f49e5 /addons
parentd5df0cddf4701c22a84aa8079024dc0d72396084 (diff)
[FIX] website_slides_survey: start now with a content slide
Before this commit, the Start now button uses the first slide (a content slide or a category slide). If the first slide was a category slide then an error was raised. Now, only content slides are used to start the survey. opw-2265250 closes odoo/odoo#52309 X-original-commit: bbc84c5d03eae51b6edfe270da51087970db2227 Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/website_slides_survey/views/website_slides_templates_course.xml2
1 files changed, 1 insertions, 1 deletions
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 1e6521836c1..a616aee86ae 100644
--- a/addons/website_slides_survey/views/website_slides_templates_course.xml
+++ b/addons/website_slides_survey/views/website_slides_templates_course.xml
@@ -7,7 +7,7 @@
</xpath>
<xpath expr="//div[@id='courseMainTabContent']//div[@id='home']/t" position="before">
- <t t-set="first_slide" t-value="channel.slide_ids[0] if len(channel.slide_ids) > 0 else None"/>
+ <t t-set="first_slide" t-value="channel.slide_content_ids[0] if len(channel.slide_content_ids) > 0 else None"/>
<div t-if="channel.nbr_certification > 0 and channel.is_member and channel.completion == 0" class="alert alert-success d-flex align-items-center justify-content-between flex-wrap">
<div>Begin your <b>certification</b> today!</div>