summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/chatter.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-08-28 12:28:06 +0200
committerAaron Bohy <aab@odoo.com>2017-08-29 10:38:36 +0200
commitf24c83efcc47b24ac8fc7a8add8d2ce39a89ebdf (patch)
tree3ca8de677f73b314f39745fcfb2c374517e26ef7 /addons/mail/static/src/js/chatter.js
parente1cbaf7af7b1a52c6cb10a8f162bb10aa7016c95 (diff)
[FIX] web,mail: keep changes when scheduling an activity
The problem occurred in form view, in edit mode, when the user did some changes in the form, and then clicked on 'Log or schedule an activity'. When validating the activity, the fields mail_activity and mail_thread were reloaded but all changes were discarded in the process. This rev. ensures to reload the requested field without discarding the changes.
Diffstat (limited to 'addons/mail/static/src/js/chatter.js')
-rw-r--r--addons/mail/static/src/js/chatter.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/chatter.js b/addons/mail/static/src/js/chatter.js
index c799cf6a70a..f5a85948762 100644
--- a/addons/mail/static/src/js/chatter.js
+++ b/addons/mail/static/src/js/chatter.js
@@ -288,7 +288,10 @@ var Chatter = Widget.extend(chat_mixin, {
if (this.fields.thread && event.data.thread) {
fieldNames.push(this.fields.thread.name);
}
- this.trigger_up('reload', {fieldNames: fieldNames});
+ this.trigger_up('reload', {
+ fieldNames: fieldNames,
+ keepChanges: true,
+ });
},
_onScheduleActivity: function () {
this.fields.activity.scheduleActivity(false);