From ad689f5cf28de23982c364c656fec7f4dc540ca2 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 5 Jul 2012 12:00:01 +0200 Subject: [PATCH] [ADD] crash manager to embedded client, otherwise RPC errors get silently supressed bzr revid: xmo@openerp.com-20120705100001-48ufwqtt1t1gnol2 --- addons/web/static/src/js/chrome.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 0b152357ef2..33e344b9181 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -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;