[FIX] When action returns other value than an action, close current dialog if any

bzr revid: fme@openerp.com-20121115134207-n0q1vae1wuga5jc7
This commit is contained in:
Fabien Meghazi 2012-11-15 14:42:07 +01:00
parent 7ac71a4e47
commit f842d8dba1
1 changed files with 1 additions and 0 deletions

View File

@ -1239,6 +1239,7 @@ instance.web.View = instance.web.Widget.extend({
});
}, null);
} else {
self.do_action({"type":"ir.actions.act_window_close"});
return result_handler();
}
};