diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-04-10 15:10:24 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-04-10 15:10:24 +0200 |
| commit | e145f2b0c8831ec8756307b6b70c82f8dcdcab54 (patch) | |
| tree | 93406d01e313cfecdeac03132c1cccb55ff05088 /addons/mail/static/src/js/chatter.js | |
| parent | 3f95b074e959f0f4ac93fbf4048c0c7276f2c17a (diff) | |
| parent | 2694174b410f14ca81f0681ff4ae6856ff459ced (diff) | |
[MERGE] forward port branch saas-12.2 up to 2694174b410
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 bc5d18a4150..968242ffe6a 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'; } }, /** @@ -577,6 +578,9 @@ var Chatter = Widget.extend({ * @private */ _onReloadAttachmentBox: function () { + if (this.reloadOnUploadAttachment) { + this.trigger_up('reload'); + } this._reloadAttachmentBox(); }, /** |
