[FIX] mail: avoid activities handling on view without activity_ids field

task-2314240

closes odoo/odoo#55679

X-original-commit: 7f626587bd7024e8141662fcc7b9f3cb1ac9485b
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Xavier Dubuc
2020-08-10 09:52:54 +00:00
parent 658c3e78a2
commit 62aad0ff66
@@ -50,6 +50,9 @@ function factory(dependencies) {
}
async refreshActivities() {
if (!this.hasActivities) {
return;
}
if (!this.thread || this.thread.isTemporary) {
this.update({ activities: [['unlink-all']] });
return;