Commit 79bcd5c0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

if movement_list is empty, no delivery will be built apparently.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33135 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4c6c8d61
......@@ -122,6 +122,8 @@ class OrderBuilder(XMLObject, Amount, Predicate):
else:
movement_list = [self.restrictedTraverse(relative_url) for relative_url \
in movement_relative_url_list]
if not len(movement_list):
return []
# Collect
root_group_node = self.collectMovement(movement_list)
# Build
......
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