[FIX] mail: fix activity directly mark as done display

task-2280174

closes odoo/odoo#53863

X-original-commit: 2638d32db686ef1906c2b2b45d3e9276fe831e52
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Xavier Dubuc
2020-06-30 11:09:35 +00:00
parent b033244f99
commit a6e7833a7d
@@ -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();
},
},
});
}