diff options
| author | Thanh Dodeur <tso@odoo.com> | 2020-10-23 13:04:55 +0000 |
|---|---|---|
| committer | Thanh Dodeur <tso@odoo.com> | 2020-10-26 10:16:10 +0000 |
| commit | ce6f6fb4e04746d28e1b959d50f50a855c7a3049 (patch) | |
| tree | dc138f3ac4a0366a1676b2b802d04de9faac1cd3 /addons/mail/static/src/models | |
| parent | 5e46850072f142fb17b72d8738dc4f1c60e3a786 (diff) | |
[FIX] mail: prevents crash when completing self repeating activities
Before this commit, completing an activity that was automatically
generating new activities was causing a crash as no action is returned
when they are completed.
This commit fixes this issue by handling the case where no action is
returned.
opw-2361674
closes odoo/odoo#60628
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models')
| -rw-r--r-- | addons/mail/static/src/models/activity/activity.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/mail/static/src/models/activity/activity.js b/addons/mail/static/src/models/activity/activity.js index 5b9af7013ca..b2d8ef3cb13 100644 --- a/addons/mail/static/src/models/activity/activity.js +++ b/addons/mail/static/src/models/activity/activity.js @@ -204,6 +204,10 @@ function factory(dependencies) { this.thread.refresh(); const thread = this.thread; this.delete(); + if (!action) { + thread.refreshActivities(); + return; + } this.env.bus.trigger('do-action', { action, options: { |
