From 1eaea7d1de180097e2d100a2293a1c064a679c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 18 Jun 2018 21:55:16 +0200 Subject: [PATCH] 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 --- CHANGELOG | 1 + trytond/model/modelstorage.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 0ca6633b09..929bed5039 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/trytond/model/modelstorage.py b/trytond/model/modelstorage.py index 69d94a492a..2bfbde24e9 100644 --- a/trytond/model/modelstorage.py +++ b/trytond/model/modelstorage.py @@ -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)