Commit 77ac0aaa authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix a mistake in r31217. in OrderRuleMovementGenerator, if order is missing...

fix a mistake in r31217. in OrderRuleMovementGenerator, if order is missing getAggregatedMovementList returns an empty list not None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31219 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3bdf97c8
......@@ -108,7 +108,7 @@ class OrderRuleMovementGenerator(object):
"""Input movement list comes from order"""
order = context.getDefaultCausalityValue()
if order is None:
return None
return []
ret = []
for movement in order.getMovementList(
portal_type=order.getPortalOrderMovementTypeList()):
......
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