summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-04-09 20:43:35 +0200
committerChristophe Simonis <chs@odoo.com>2019-04-09 20:43:35 +0200
commitaf313858b4bfcaa726c4d08057a1ff1db1ade480 (patch)
tree2777edc73a27adb00f33f2b13e8934175f019ba2 /addons/mail/static/src
parent6d4940675f18dbb98d1f3882863ee10e7a1e3a49 (diff)
parentc1c322dd40166dc1d2b3b7e8c29554364ec7ac28 (diff)
[MERGE] forward port branch 12.0 up to c1c322dd401
Diffstat (limited to 'addons/mail/static/src')
-rw-r--r--addons/mail/static/src/js/chatter.js4
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();
},
/**