From 32fa5569adda76fad035e2f5844ed56366a81c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Tue, 12 Dec 2023 22:48:01 +0100 Subject: [PATCH] Do not prevent to fill the cache of fields with a context The value of those fields in the database do not depend of the context and Function fields getter depending on context are tested separately. Closes #12715 --- trytond/trytond/model/modelstorage.py | 1 - 1 file changed, 1 deletion(-) diff --git a/trytond/trytond/model/modelstorage.py b/trytond/trytond/model/modelstorage.py index 7433f6db9a..33a33cc217 100644 --- a/trytond/trytond/model/modelstorage.py +++ b/trytond/trytond/model/modelstorage.py @@ -1853,7 +1853,6 @@ class ModelStorage(Model): if fname not in self._local_cache[id_]: self._local_cache[id_][fname] = fvalue if (field._type in no_local_cache - or field.context or getattr(field, 'datetime_field', None) or (isinstance(field, fields.Function) and (not transaction.readonly