[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user