[ADD] crash manager to embedded client, otherwise RPC errors get silently supressed

bzr revid: xmo@openerp.com-20120705100001-48ufwqtt1t1gnol2
This commit is contained in:
Xavier Morel
2012-07-05 12:00:01 +02:00
parent 997e1e54dd
commit ad689f5cf2
+2
View File
@@ -1225,6 +1225,8 @@ openerp.web.EmbeddedClient = openerp.web.OldWidget.extend({
start: function() {
var self = this;
this.crashmanager = new openerp.web.CrashManager();
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) {
var action = result.result;