Skip validate only on constant readonly fields

A field can be readonly by the domain inversion in the validate method. So it
should be validated again in case its domain inversion change and reset it a
non-readonly.
So only field that are always readonly can be skipped for the validation.

issue6448
review38341002
This commit is contained in:
Cédric Krier
2017-04-26 19:37:00 +02:00
parent 58b82777c6
commit 376a67fd06
+1 -1
View File
@@ -1122,7 +1122,7 @@
if (fields && !~fields.indexOf(fname)) {
continue;
}
if (field.get_state_attrs(this).readonly) {
if (field.description.readonly) {
continue;
}
if (~exclude_fields.indexOf(fname)) {