Commit a6699c08 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Even when cell-level movement groups are defined, it is possible that there is...

Even when cell-level movement groups are defined, it is possible that there is no cell in reality. So delivery_movement_to_update_list should contain delivery_line in this case.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38781 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d74133fd
...@@ -571,10 +571,14 @@ class OrderBuilder(XMLObject, Amount, Predicate): ...@@ -571,10 +571,14 @@ class OrderBuilder(XMLObject, Amount, Predicate):
base_id = self.matrix_base_id base_id = self.matrix_base_id
getCell = delivery_line.getCell getCell = delivery_line.getCell
delivery_movement_to_update_list = [] delivery_movement_to_update_list = []
for cell_key in delivery_line.getCellKeyList(base_id=base_id): cell_key_list = delivery_line.getCellKeyList(base_id=base_id)
cell = getCell(base_id=base_id, *cell_key) if cell_key_list:
if cell is not None: for cell_key in cell_key_list:
delivery_movement_to_update_list.append(cell) cell = getCell(base_id=base_id, *cell_key)
if cell is not None:
delivery_movement_to_update_list.append(cell)
else:
delivery_movement_to_update_list.append(delivery_line)
for grouped_node in grouped_node_list: for grouped_node in grouped_node_list:
self._processDeliveryCellGroup( self._processDeliveryCellGroup(
delivery_line, delivery_line,
......
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