[IMP] Implemented theorical handling of sidebar actions.

bzr revid: nicolas.vanhoren@openerp.com-20110405110210-4dhwdydxh1ttik1k
This commit is contained in:
niv-openerp 2011-04-05 13:02:10 +02:00
parent df3257a741
commit 240ba15e22
1 changed files with 2 additions and 1 deletions

View File

@ -298,7 +298,8 @@ openerp.base.Sidebar = openerp.base.BaseWidget.extend({
var i = $this.attr("data-i");
var j = $this.attr("data-i");
var action = self.sections[i].elements[j];
// TODO: do something with the action
// I know this doesn't work, one day it will
new openerp.base.ActionManager(this.view_manager, null).do_action(action);
e.stopPropagation();
e.preventDefault();
});