[FIX] fields: correct related_sudo computation.

Correctly merge commit 748a719fd9 in 9.0
This commit is contained in:
Christophe Simonis
2016-01-26 19:46:55 +01:00
parent 2ce9311cfe
commit 2ebdb5f36e
+1 -1
View File
@@ -564,7 +564,7 @@ class Field(object):
# draft records: copy record's cache to other's cache first
for name, value in record._cache.iteritems():
other[name] = value
other, field = self.traverse_related(other if record.id else record)
other, field = self.traverse_related(other)
record[self.name] = other[field.name]
def _inverse_related(self, records):