Do not validate Function fields even with setter

Their values should be already validated by the underlying storage and also
the domain validation requires to have a searcher.

issue7507
review48471002
This commit is contained in:
Cédric Krier
2018-06-18 21:55:16 +02:00
parent 1f6dcc3e56
commit 1eaea7d1de
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
* Do not validate Function fields even with setter
* Simplify the creation of dependencies graph
* Make depends on methods generic to any method
* Add width/height attribute to notebook
+1 -2
View File
@@ -980,8 +980,7 @@ class ModelStorage(Model):
and not (depends & field_names)
and not (depends & function_fields)):
continue
if isinstance(field, fields.Function) and \
not field.setter:
if isinstance(field, fields.Function):
continue
validate_domain(field)