[imp] changed behavior when clicking on a root menu item wihout dashboard to be more consistent
bzr revid: nicolas.vanhoren@openerp.com-20111207105008-bt3m5vytpb2r06lh
This commit is contained in:
parent
faa8627737
commit
d30c1d8c4f
|
@ -973,6 +973,8 @@ openerp.web.Menu = openerp.web.Widget.extend(/** @lends openerp.web.Menu# */{
|
|||
if (data.action.length) {
|
||||
var action = data.action[0][2];
|
||||
self.on_action(action);
|
||||
} else {
|
||||
self.on_action({type: 'null_action'});
|
||||
}
|
||||
},
|
||||
on_action: function(action) {
|
||||
|
|
|
@ -90,6 +90,10 @@ session.web.ActionManager = session.web.Widget.extend({
|
|||
}
|
||||
return this[type](action, on_close);
|
||||
},
|
||||
null_action: function() {
|
||||
this.dialog_stop();
|
||||
this.content_stop();
|
||||
},
|
||||
ir_actions_act_window: function (action, on_close) {
|
||||
if (_(['base.module.upgrade', 'base.setup.installer'])
|
||||
.contains(action.res_model)) {
|
||||
|
|
Loading…
Reference in New Issue