[FIX] website_event: stop displaying messages on event page

A recent refactoring of mail.message induced a crash when redering the
front side of an event with messages/notes in its chatter. As there is
no use to such a feature, we simply remove the part that displays those
messages.

Task ID 2279183
Linked to task ID 2071556 (message publish management cleaning)

closes odoo/odoo#53135

X-original-commit: c4700d379e3286fb75c0d1f48f67671f841151b7
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Rémi Rahir
2020-06-17 10:00:04 +00:00
committed by Thibault Delavallée
parent 7b2ed98cb9
commit a10afd67c7
+1 -16
View File
@@ -429,7 +429,7 @@
<t t-call="website_event.event_details">
<section class="bg-200 mt-n5">
<div class="container overflow-hidden">
<div class="row no-gutters mt-n4">
<div class="row no-gutters mt-n4 mb-3">
<!-- Description -->
<div id="o_wevent_event_main_col" class="col-lg-8 bg-white px-5 pt64 pb-0 shadow-sm">
<span t-field="event.description" itemprop="description"/>
@@ -506,21 +506,6 @@
</div>
</div>
</div>
<ul class="list-unstyled" id="comment">
<li t-foreach="event.website_message_ids" t-as="comment" class="media mt-3">
<div class="media-body">
<t t-call="website.publish_management">
<t t-set="object" t-value="comment"/>
<t t-set="publish_edit" t-value="True"/>
</t>
<t t-raw="comment.body"/>
<small class="float-right muted text-right">
<div t-field="comment.author_id"/>
<div t-field="comment.date" t-options='{"hide_seconds":"True"}'/>
</small>
</div>
</li>
</ul>
</div>
</section>
</t>