Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-576133-msh into lp:openerp-web/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-576133-msh/+merge/112893
Hello,
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.
Demo :- Open any form and save the form without filling required field, invalid
class will be applied on that fields, but when you fill up the invalid fields
and saves the record still it will show invalid field that is invalid class is
not removed, so when record is going to save called update_dom again.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-576133-msh/+merge/112893
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-576133-msh.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2012-06-29 15:28:11 +0000
+++ addons/web/static/src/js/view_form.js 2012-06-30 07:26:19 +0000
@@ -534,6 +534,9 @@
// 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();
}
}
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp