From 67fe5021ba32421d7ddaf2a18d24b8e225db02ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Wed, 22 Nov 2023 01:29:47 +0100 Subject: [PATCH] Do not prevent to fill the cache of fields with a datetime_field set The value of those fields do not depend on the value of the datetime_field, only the value of the remote fields read. 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 33a33cc217..ab1ca83134 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 getattr(field, 'datetime_field', None) or (isinstance(field, fields.Function) and (not transaction.readonly or field.getter_with_context))):