From 19b7493711b15af850c59fae2cbc64fa364c3f1e Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 5 Oct 2011 12:17:14 +0200 Subject: [PATCH] [FIX] When reaching ir_actions_act_window_close without dialog, call on_closed if any The static homepage do not reload the page when the module installed have no configuration actions (eg: returning direcly ir_actions_act_window_close) bzr revid: fme@openerp.com-20111005101714-s5jy3gslni00a5jo --- addons/web/static/src/js/views.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 28e9772da77..d7de7ee1633 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -116,6 +116,9 @@ db.web.ActionManager = db.web.Widget.extend({ */ }, ir_actions_act_window_close: function (action, on_closed) { + if (!this.dialog && on_closed) { + on_closed(); + } this.dialog_stop(); }, ir_actions_server: function (action, on_closed) {