[IMP] action with menu_id
bzr revid: al@openerp.com-20111221114904-x8s6xqs70utrnsim
This commit is contained in:
parent
2c471ad97d
commit
6a58ba526a
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue