summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread_widget.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2019-09-04 07:46:45 +0000
committerAlexandre Kühn <aku@odoo.com>2019-09-04 10:29:07 +0000
commite7aff236b8073b952a0e554d9897a8f88d5c4c91 (patch)
treefe81fb980d9afd2d1eceffc8a88abe6a69ac2fb4 /addons/mail/static/src/js/thread_widget.js
parent3ec676be002e4c68907f862c649d7fba6e2eb5e8 (diff)
[FIX] mail: no message attachment delete in discuss and chat window
Delete attachment from message makes only sense from chatter. Task-Id 2058455
Diffstat (limited to 'addons/mail/static/src/js/thread_widget.js')
-rw-r--r--addons/mail/static/src/js/thread_widget.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/thread_widget.js b/addons/mail/static/src/js/thread_widget.js
index e5902602a77..9550931ad95 100644
--- a/addons/mail/static/src/js/thread_widget.js
+++ b/addons/mail/static/src/js/thread_widget.js
@@ -68,6 +68,7 @@ var ThreadWidget = Widget.extend({
displayEmailIcons: true,
displayReplyIcons: false,
loadMoreOnScroll: false,
+ hasMessageAttachmentDeletable: false,
});
// options when the thread is disabled
this._disabledOptions = {
@@ -81,6 +82,7 @@ var ThreadWidget = Widget.extend({
displayEmailIcons: false,
displayReplyIcons: false,
loadMoreOnScroll: this._enabledOptions.loadMoreOnScroll,
+ hasMessageAttachmentDeletable: false,
};
this._selectedMessageID = null;
this._currentThreadID = null;