From a6e7833a7dcf6fa5aaa0138999c416e8aff27ccb Mon Sep 17 00:00:00 2001 From: Xavier Dubuc Date: Tue, 30 Jun 2020 09:58:20 +0000 Subject: [PATCH] [FIX] mail: fix activity directly mark as done display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2280174 closes odoo/odoo#53863 X-original-commit: 2638d32db686ef1906c2b2b45d3e9276fe831e52 Signed-off-by: Alexandre Kühn (aku) --- .../static/src/components/chatter_topbar/chatter_topbar.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/mail/static/src/components/chatter_topbar/chatter_topbar.js b/addons/mail/static/src/components/chatter_topbar/chatter_topbar.js index 37b28b4970e..9482aa9762c 100644 --- a/addons/mail/static/src/components/chatter_topbar/chatter_topbar.js +++ b/addons/mail/static/src/components/chatter_topbar/chatter_topbar.js @@ -98,9 +98,10 @@ class ChatterTopbar extends Component { return this.env.bus.trigger('do-action', { action, options: { - // A bit "extreme", could be improved: - // normally only an activity is created (no update nor delete) - on_close: () => this.chatter.refreshActivities(), + on_close: () => { + this.chatter.refreshActivities(); + this.chatter.refresh(); + }, }, }); }