[FIX] website_mail: no publish button for notes

The admin can decide to publish/unpublish messages in the comments
of a product from the website. The button is also shown for notes
even if they are never published.

opw-1935337

closes odoo/odoo#31420
This commit is contained in:
Julien (juc) Castiaux
2019-02-26 09:49:19 +00:00
parent f886bdfffa
commit c7386de1a2
@@ -82,7 +82,7 @@
<span t-field="message.author_id"/> <small>on <span t-field="message.date"/></small>
</h5>
<t t-set="object" t-value="message"/>
<t t-call="website.publish_short"/>
<t t-if="not message.subtype_id.internal" t-call="website.publish_short"/> <!-- do not forward on v11 or later -->
<div t-field="message.body"/>
<div class="col-md-2 col-sm-3 text-center" t-foreach='message.attachment_ids' t-as='attachment'>
<a t-attf-href="/web/content/#{attachment.id}?download=true" target="_blank">