[IMP] action with menu_id

bzr revid: al@openerp.com-20111221114904-x8s6xqs70utrnsim
This commit is contained in:
Antony Lesuisse 2011-12-21 12:49:04 +01:00
parent 2c471ad97d
commit 6a58ba526a
2 changed files with 4 additions and 1 deletions

View File

@ -1083,7 +1083,7 @@ openerp.web.WebClient = openerp.web.Widget.extend(/** @lends openerp.web.WebClie
do_action: function(action) {
var self = this;
// TODO replace by client action menuclick
if(action.type === "ir.ui.menu") {
if(action.menu_id) {
this.do_reload().then(function () {
self.menu.on_menu_click(null, action.menu_id);
});

View File

@ -135,6 +135,9 @@ session.web.ActionManager = session.web.Widget.extend({
this.dialog_viewmanager.appendTo(this.dialog.$element);
this.dialog.open();
} else {
if(action.menu_id) {
return this.widget_parent.do_action(action);
}
this.dialog_stop();
this.content_stop();
this.inner_action = action;