[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:
@@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user