Commit d4a884c2 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: we are now able to configure a Builder without entering movement group

to separate cell.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3727 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8669c3a1
......@@ -387,13 +387,25 @@ class OrderBuilder(XMLObject, Amount, Predicate):
delivery_line.setVariationCategoryList(line_variation_category_list)
# Then, create delivery movement (delivery cell or complete delivery
# line)
for group in movement_group.getGroupList():
self._deliveryCellGroupProcessing(
group_list = movement_group.getGroupList()
# If no group is defined for cell, we need to continue, in order to
# save the quantity value
if list(group_list) != []:
for group in group_list:
self._deliveryCellGroupProcessing(
delivery_line,
group,
self.getDeliveryCellCollectOrderList()[1:],
{},
update_existing_line=update_existing_line)
else:
self._deliveryCellGroupProcessing(
delivery_line,
movement_group,
[],
{},
update_existing_line=update_existing_line)
def _deliveryCellGroupProcessing(self, delivery_line, movement_group,
collect_order_list, property_dict,
......
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