Commit 2b08800b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

ERP5Type: getOriginalDocument() now returns the top-most original document.

parent 25383fca
......@@ -2713,7 +2713,11 @@ class Base( CopyContainer,
else:
original = getattr(self, '_original', None)
if original is not None:
return aq_inner(original)
original = aq_inner(original)
if original.isTempObject():
return original.getOriginalDocument()
else:
return original
else:
return None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment