[ADD] client action to reload the interface (useful for refreshing the menus and current view)

bzr revid: rco@openerp.com-20120503081732-ry9nj048tlh464z7
This commit is contained in:
Raphael Collet
2012-05-03 10:17:32 +02:00
parent b8e8ec6f7f
commit ec5e839129
+12
View File
@@ -1318,6 +1318,18 @@ instance.web.str_to_xml = function(s) {
*/
instance.web.client_actions = new instance.web.Registry();
/**
* Client action to reload the whole interface; refreshes the menu and reloads the current view
*/
instance.web.client_actions.add("reload_all", "instance.web.ReloadAll");
instance.web.ReloadAll = instance.web.Widget.extend({
template: "EmptyComponent",
start: function() {
window.location.reload();
}
});
/**
* Registry for all the main views
*/