summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/follower/follower.js
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2020-08-07 11:44:25 +0000
committerAlexandre Kühn <aku@odoo.com>2020-08-07 14:34:35 +0000
commit8bf5381d136f168d9bd5a562960afef7c7c35175 (patch)
treee6717597ba539d32b10ceea100c7624188c826f2 /addons/mail/static/src/models/follower/follower.js
parentdda65902c200fff62f36823b26ddf045bf8947d1 (diff)
[FIX] mail: traceback while going to close dialog
Before this commit: Traceback appearing while going to close subtypes dialog from followers or closing the attachment viewer dialog. This is happening because the dialog manager doesn't have a close function after https://github.com/odoo/odoo/commit/9216bdcb6f0bbb20900a33bbf7283e6e4fda1b2c After this commit: Able to close the dialog without any traceback as fix it by call the delete function. LINKS Task-2314898 closes odoo/odoo#55636 X-original-commit: f2186ceefe23cd1a45adc72089c8e828e9b75cc8 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/follower/follower.js')
-rw-r--r--addons/mail/static/src/models/follower/follower.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/models/follower/follower.js b/addons/mail/static/src/models/follower/follower.js
index 4c44b788d4d..e5be843d7ce 100644
--- a/addons/mail/static/src/models/follower/follower.js
+++ b/addons/mail/static/src/models/follower/follower.js
@@ -59,7 +59,7 @@ function factory(dependencies) {
* Close subtypes dialog
*/
closeSubtypes() {
- this.env.messaging.dialogManager.close(this._subtypesListDialog);
+ this._subtypesListDialog.delete();
this._subtypesListDialog = undefined;
}