[IMP] only "special=cancel" buttons close the form

bzr revid: chs@openerp.com-20121106163658-fez0bvbddjbuw5wi
This commit is contained in:
Christophe Simonis
2012-11-06 17:36:58 +01:00
parent 4b494f77f6
commit 595a2b3bb1
+1 -1
View File
@@ -1234,7 +1234,7 @@ instance.web.View = instance.web.Widget.extend({
}
};
if (action_data.special) {
if (action_data.special === 'cancel') {
return handler({"type":"ir.actions.act_window_close"});
} else if (action_data.type=="object") {
var args = [[record_id]], additional_args = [];