[MERGE] forward port branch 10.0 up to 8094970

This commit is contained in:
Christophe Simonis
2016-12-11 10:57:39 +01:00
+3 -1
View File
@@ -989,7 +989,9 @@ class Field(object):
def determine_draft_value(self, record):
""" Determine the value of ``self`` for the given draft ``record``. """
if self.compute:
self._compute_value(record)
fields = record._field_computed[self]
with record.env.protecting(fields, record):
self._compute_value(record)
else:
null = self.convert_to_cache(False, record, validate=False)
record._cache[self] = SpecialValue(null)