diff options
| author | Thanh Dodeur <tso@odoo.com> | 2018-12-21 08:29:59 +0000 |
|---|---|---|
| committer | Thanh Dodeur <tso@odoo.com> | 2019-01-28 11:24:48 +0000 |
| commit | 3c9cf1e75302a3bece19848cc3393f91564549fa (patch) | |
| tree | df1df307fb705d7b72428e0e988433d2e9857a88 /addons/mail/static/src/js/models/threads/document_thread.js | |
| parent | e27f0ee7efa1419f2388e58c2531be94c7214638 (diff) | |
[IMP] mail: adds delete and upload to chatter
backport of 73d9b9588f24788766c66aacd69ed436bb0223f4
This commit adds the ability to upload and delete
attachments from the chatter.
closes odoo/odoo#30636
Diffstat (limited to 'addons/mail/static/src/js/models/threads/document_thread.js')
| -rw-r--r-- | addons/mail/static/src/js/models/threads/document_thread.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/models/threads/document_thread.js b/addons/mail/static/src/js/models/threads/document_thread.js index f90da991960..dd9a31ceb8c 100644 --- a/addons/mail/static/src/js/models/threads/document_thread.js +++ b/addons/mail/static/src/js/models/threads/document_thread.js @@ -157,6 +157,14 @@ var DocumentThread = Thread.extend({ return true; }, /** + * @param {integer[]} attachmentIDs + */ + removeAttachmentsFromMessages: function (attachmentIDs) { + _.each(this.getMessages(), function (message) { + message.removeAttachments(attachmentIDs); + }); + }, + /** * Set list of message IDs of this document thread * * Useful in order to handle message history of the document thread, |
