diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 798c5bb1493..ae1ec8fdc6e 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -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 */