[FIX] soft reload after module installation
lp bug: https://launchpad.net/bugs/873362 fixed bzr revid: al@openerp.com-20111013232054-2i5ptzfurjc429zw
This commit is contained in:
parent
462f808500
commit
57d635f44d
|
@ -970,6 +970,10 @@ openerp.web.WebClient = openerp.web.Widget.extend(/** @lends openerp.web.WebClie
|
||||||
this.login.appendTo($('#oe_login'));
|
this.login.appendTo($('#oe_login'));
|
||||||
this.menu.start();
|
this.menu.start();
|
||||||
},
|
},
|
||||||
|
do_reload: function() {
|
||||||
|
this.session.session_restore();
|
||||||
|
this.menu.do_reload();
|
||||||
|
},
|
||||||
on_logged: function() {
|
on_logged: function() {
|
||||||
this.menu.do_reload();
|
this.menu.do_reload();
|
||||||
if(this.action_manager)
|
if(this.action_manager)
|
||||||
|
|
|
@ -123,8 +123,8 @@ db.web.ActionManager = db.web.Widget.extend({
|
||||||
}
|
}
|
||||||
if (this.dialog && action.context) {
|
if (this.dialog && action.context) {
|
||||||
var model = action.context.active_model;
|
var model = action.context.active_model;
|
||||||
if (model === 'base.module.upgrade' || model === 'base.setup.installer') {
|
if (model === 'base.module.upgrade' || model === 'base.setup.installer' || model === 'base.module.upgrade') {
|
||||||
db.webclient.menu.do_reload();
|
db.webclient.do_reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.dialog_stop();
|
this.dialog_stop();
|
||||||
|
|
|
@ -485,9 +485,8 @@ openerp.web_dashboard.ApplicationTiles = openerp.web.View.extend({
|
||||||
var self = this;
|
var self = this;
|
||||||
new openerp.web.DataSet(this, 'res.config').call('start', [[]], function (action) {
|
new openerp.web.DataSet(this, 'res.config').call('start', [[]], function (action) {
|
||||||
$.unblockUI();
|
$.unblockUI();
|
||||||
self.do_action(action, function () {
|
self.widget_parent.widget_parent.do_action(action, function () {
|
||||||
// TODO: less brutal reloading
|
openerp.webclient.do_reload();
|
||||||
window.location.reload(true);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue