[FIX]Fixed the issue of invalid class not removed when user have filled all the invalid fields, when he saves the record and again edit it still he will shown field as a invalid.
bzr revid: msh@tinyerp.com-20120630071656-ydqha5hktmhsud3o
This commit is contained in:
@@ -534,6 +534,9 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
|
||||
// Special case 'id' field, do not save this field
|
||||
// on 'create' : save all non readonly fields
|
||||
// on 'edit' : save non readonly modified fields
|
||||
if(f.$element.is('.invalid')){
|
||||
f.update_dom(true);
|
||||
}
|
||||
values[f.name] = f.get_value();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user