[FIX] double action manager

bzr revid: al@openerp.com-20110810114914-rnokf7v1mp8kmtu1
This commit is contained in:
Antony Lesuisse 2011-08-10 13:49:14 +02:00
parent d1a5c72972
commit 85b1852aa6
1 changed files with 3 additions and 0 deletions

View File

@ -374,6 +374,7 @@ openerp.base.Dialog = openerp.base.OldWidget.extend({
this.open();
}
this._super();
return this;
},
open: function(dialog_options) {
// TODO fme: bind window on resize
@ -988,6 +989,8 @@ openerp.base.WebClient = openerp.base.Widget.extend({
this.notification.notify("OpenERP Client", "The openerp client has been initialized.");
},
on_logged: function() {
if(this.action_manager)
this.action_manager.stop();
this.action_manager = new openerp.base.ActionManager(this);
this.action_manager.appendTo($("#oe_app"));