Commit e1bce0c3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

in OrderRuleMovementGenerator, if order is missing getAggregatedMovementList...

in OrderRuleMovementGenerator, if order is missing getAggregatedMovementList returns an empty list. 


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