From 245b009a0bbffc49a8d06f4ad12a93b4302827e4 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Wed, 31 Jul 2013 16:41:29 +0200 Subject: [PATCH] [FIX] avoid error message in the web client when we go on the Apps menu, replace it with a warning message explaining that the apps is not working currently bzr revid: nicolas.vanhoren@openerp.com-20130731144129-x9po16ihtbp4rj8m --- openerp/addons/base/static/src/js/apps.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openerp/addons/base/static/src/js/apps.js b/openerp/addons/base/static/src/js/apps.js index eaaca6b13c3..f877e9258b1 100644 --- a/openerp/addons/base/static/src/js/apps.js +++ b/openerp/addons/base/static/src/js/apps.js @@ -92,7 +92,8 @@ openerp.base = function(instance) { start: function() { var self = this; - return self.get_client(). + // desactivated for now because apps does not work anyway due to changes in the framework + /*return self.get_client(). done(function(client) { client.replace(self.$el). done(function() { @@ -100,13 +101,13 @@ openerp.base = function(instance) { client.do_action(self.remote_action_id, {hide_breadcrumb: true}); }); }). - fail(function(client) { + fail(function(client) {*/ self.do_warn(_t('OpenERP Apps Unreachable'), _t('Showing locally available modules'), true); self.rpc('/web/action/load', {action_id: self.failback_action_id}).done(function(action) { self.do_action(action); instance.webclient.menu.open_action(action.id); }); - }); + //}); }, });