Commit 0230d2c4 authored by Romain Courteaud's avatar Romain Courteaud

Do not try to create meaningfull IDs, as order movement can be hierarchicals


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17236 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3cfb68c
......@@ -111,16 +111,11 @@ class OrderRule(DeliveryRule):
related_order = movement.getOrderRelatedValue()
property_dict = self._getExpandablePropertyDict(applied_rule, movement)
if related_order is None:
if movement.getParentUid() == movement.getExplanationUid():
# We are on a line
new_id = movement.getId()
else:
# We are on a cell
new_id = "%s_%s" % (movement.getParentId(), movement.getId())
# Generate a simulation movement
# Do not try to create meaningfull IDs, as order movement can be
# hierarchicals
applied_rule.newContent(
portal_type=movement_type,
id=new_id,
order_value=movement,
order_ratio=1,
delivery_ratio=1,
......
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