[FIX] anonymous: correct restart avec login

bzr revid: chs@openerp.com-20120625131416-92xjffeps6hfoa3j
This commit is contained in:
Christophe Simonis 2012-06-25 15:14:16 +02:00
parent d3f7b65042
commit 1ee5803424
1 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,9 @@ openerp.anonymous = function(instance) {
}
});
},
restart: function() {
return this.start();
}
});
@ -35,8 +38,9 @@ openerp.anonymous = function(instance) {
this.$element.find('.oe_topbar_anonymous_login').click(function() {
var p = self.getParent();
var am = p.action_manager;
p.$element.find('.oe_leftbar').hide();
am.do_action({type:'ir.actions.client', tag:'login'});
am.client_widget.on('login', p, p.show_application);
am.client_widget.on('login', p, p.restart);
});
}
});