[FIX] Fields validation is not always triggered.

Eg: in Create a Partner action button from leads form, changing selection then clicking Continue is allowed despite the fact that the second field is invalid.

bzr revid: fme@openerp.com-20120116105258-4kkvr39i3fd3za1w
This commit is contained in:
Fabien Meghazi
2012-01-16 11:52:58 +01:00
parent dad51038e6
commit 064a50bcde
+3
View File
@@ -209,6 +209,9 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
for (var w in this.widgets) {
w = this.widgets[w];
w.process_modifiers();
if (w.field) {
w.validate();
}
w.update_dom();
}
},