[IMP] make embedded client crash manager configurable

bzr revid: xmo@openerp.com-20120705102724-orwhrpyzrmxisbud
This commit is contained in:
Xavier Morel
2012-07-05 12:27:24 +02:00
parent ad689f5cf2
commit 213d0dd7ae
+5 -1
View File
@@ -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) {