From 630744dadf4700467d930cb01c36ca2d0a7620f0 Mon Sep 17 00:00:00 2001 From: msh-openerp Date: Sat, 30 Jun 2012 12:46:56 +0530 Subject: [PATCH] [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 --- addons/web/static/src/js/view_form.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 7437e43b08b..9f358f662bb 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -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(); } }