[FIX] website_slides: fix qweb template slide_content_detailed
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template closes odoo/odoo#110117 Attributeerror: 'slide.channel' object has no attribute 'can_access_channel' Template: website_slides.slide_content_detailed Path: /t/div[6]/div/div[2]/t[3]/t[2] Node: <t t-if='not slide.channel_id.can_comment and slide.channel_id.can_access_channel'/> X-original-commit: 1ca26014a32a8aca528a4769451b7f7cf5f61b1a Signed-off-by: Jérémy Kersten <jke@odoo.com>
This commit is contained in:
@@ -372,7 +372,7 @@
|
||||
</t>
|
||||
<t t-else="">
|
||||
<t t-set="enable_slide_comments" t-value="1"/>
|
||||
<t t-if="not slide.channel_id.can_comment and slide.channel_id.can_access_channel"><p>Earn more Karma to leave a comment.</p></t>
|
||||
<t t-if="not slide.channel_id.can_comment and can_access_channel"><p>Earn more Karma to leave a comment.</p></t>
|
||||
</t>
|
||||
<t t-if="enable_slide_comments" t-call="portal.message_thread">
|
||||
<t t-set="object" t-value="slide"/>
|
||||
|
||||
Reference in New Issue
Block a user