[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>
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user