Commit 342a3d9a authored by Romain Courteaud's avatar Romain Courteaud

Simulation movement has not always the price attribute.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3172 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b98cfc0c
......@@ -477,7 +477,10 @@ class FakeMovement:
"""
Return calculated price
"""
return getattr(self, self.__price_method)()
if self.__price_method is not None:
return getattr(self, self.__price_method)()
else:
return None
def setPriceMethod(self, method):
"""
......
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