diff options
| author | Julien (juc) Castiaux <juc@odoo.com> | 2019-02-26 09:34:15 +0000 |
|---|---|---|
| committer | Julien (juc) Castiaux <juc@odoo.com> | 2019-02-26 09:49:19 +0000 |
| commit | c7386de1a2e400224e3ced403b077e7be6f218ea (patch) | |
| tree | 9f8b446b3aa416c86188698712ae6fabbd5b321c /addons | |
| parent | f886bdfffae134443aa9ce6e029aeea9a0801017 (diff) | |
[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
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website_mail/views/website_mail_templates.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_mail/views/website_mail_templates.xml b/addons/website_mail/views/website_mail_templates.xml index 00abfb7bece..db4c38ff247 100644 --- a/addons/website_mail/views/website_mail_templates.xml +++ b/addons/website_mail/views/website_mail_templates.xml @@ -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"> |
