diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-04-09 20:48:01 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-04-09 20:48:01 +0200 |
| commit | c9e1deb496e97fca22991b788ad36f753ecb1fc5 (patch) | |
| tree | 78689bb9e5e029c99a2f1690e7e9d8e425734a26 /addons/mail/static/src/js/chatter.js | |
| parent | 6c8e30cae6ca5e4fe12e287ebd29d76544be57a3 (diff) | |
| parent | af313858b4bfcaa726c4d08057a1ff1db1ade480 (diff) | |
[MERGE] forward port branch saas-12.1 up to af313858b4b
Diffstat (limited to 'addons/mail/static/src/js/chatter.js')
| -rw-r--r-- | addons/mail/static/src/js/chatter.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/chatter.js b/addons/mail/static/src/js/chatter.js index 72971fbeee9..5f9b11198e3 100644 --- a/addons/mail/static/src/js/chatter.js +++ b/addons/mail/static/src/js/chatter.js @@ -81,6 +81,7 @@ var Chatter = Widget.extend({ var nodeOptions = fieldsInfo[mailFields.mail_thread].options || {}; this.hasLogButton = options.display_log_button || nodeOptions.display_log_button; this.postRefresh = nodeOptions.post_refresh || 'never'; + this.reloadOnUploadAttachment = this.postRefresh === 'always'; } }, /** @@ -572,6 +573,9 @@ var Chatter = Widget.extend({ * @private */ _onReloadAttachmentBox: function () { + if (this.reloadOnUploadAttachment) { + this.trigger_up('reload'); + } this._reloadAttachmentBox(); }, /** |
