Commit 6ad33fda authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

return None in Movement.getExplanationValue if getRootDeliveryValue is...

return None in Movement.getExplanationValue if getRootDeliveryValue is missing, because we use Movement class as the base class for non Delivery->Movement structure classes too.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38279 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0189cf89
...@@ -554,7 +554,10 @@ class Movement(XMLObject, Amount, CompositionMixin): ...@@ -554,7 +554,10 @@ class Movement(XMLObject, Amount, CompositionMixin):
""" """
Returns the object explanation of this movement. Returns the object explanation of this movement.
""" """
return self.getRootDeliveryValue() try:
return self.getRootDeliveryValue()
except AttributeError:
return None
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
'getExplanationTitle') 'getExplanationTitle')
......
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