[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
This commit is contained in:
parent
46869ba52d
commit
245b009a0b
|
@ -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);
|
||||
});
|
||||
});
|
||||
//});
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue