diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 33e344b9181..cff2b246bff 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1223,9 +1223,13 @@ openerp.web.EmbeddedClient = openerp.web.OldWidget.extend({ this.am = new openerp.web.ActionManager(this); }, + makeCrashManager: function () { + return new openerp.web.CrashManager(); + }, + start: function() { var self = this; - this.crashmanager = new openerp.web.CrashManager(); + this.crashmanager = this.makeCrashManager(); openerp.connection.on_rpc_error.add(this.crashmanager.on_rpc_error); this.am.appendTo(this.$element.addClass('openerp')); return this.rpc("/web/action/load", { action_id: this.action_id }, function(result) {