[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
This commit is contained in:
Fabien Meghazi 2011-10-05 12:17:14 +02:00
parent d13fb7fe7e
commit 19b7493711
1 changed files with 3 additions and 0 deletions

View File

@ -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) {