[FIX] web: return dialog in web.CrashManager functions

This is more a architecture fix than a bug fix.  With this commit, it is easier to modify the behavior of the dialog using the super function. like this: this._super.apply(this, arguments).opened(...)

PR #23255
This commit is contained in:
Dennis Sluijk
2018-02-22 12:01:57 +01:00
committed by ged-odoo
parent 0da5d63f52
commit f2501bfd3c
@@ -103,7 +103,7 @@ var CrashManager = core.Class.extend({
if (!this.active) {
return;
}
new Dialog(this, {
return new Dialog(this, {
size: 'medium',
title: _.str.capitalize(error.type || error.message) || _t("Odoo Warning"),
subtitle: error.data.title,
@@ -149,10 +149,10 @@ var CrashManager = core.Class.extend({
clipboard.destroy();
});
dialog.open();
return dialog.open();
},
show_message: function(exception) {
this.show_error({
return this.show_error({
type: _t("Odoo Client Error"),
message: exception,
data: {debug: ""}