Commit 4ea2810f authored by Sebastien Robin's avatar Sebastien Robin

corrected typo error


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@969 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 79fc4347
......@@ -147,26 +147,26 @@ An ERP5 Rule..."""
delivery_value = movement.getDeliveryValue(portal_type=order_movement_type_list)
if delivery_value is None:
movement.flushActivity(invoke=0)
applied_rule._delObject(movement.getId()) # XXXX Make sur this is not deleted if already in delivery
applied_rule._delObject(movement.getId()) # XXXX Make sure this is not deleted if already in delivery
else:
if getattr(delivery_value, 'isCell', 0):
if len(delivery_value.getDeliveryRelatedValueList()) > 1:
# Our delivery_value is already related to another simulation movement
# Delete ourselve
movement.flushActivity(invoke=0)
applied_rule._delObject(movement.getId()) # XXXX Make sur this is not deleted if already in delivery
applied_rule._delObject(movement.getId()) # XXXX Make sure this is not deleted if already in delivery
else:
existing_uid_list += [delivery_value.getUid()]
elif delivery_value.hasCellContent():
# Do not keep head of cells
delivery_value.flushActivity(invoke=0)
applied_rule._delObject(movement.getId()) # XXXX Make sur this is not deleted if already in delivery
applied_rule._delObject(movement.getId()) # XXXX Make sure this is not deleted if already in delivery
else:
if len(delivery_value.getDeliveryRelatedValueList()) > 1:
# Our delivery_value is already related to another simulation movement
# Delete ourselve
movement.flushActivity(invoke=0)
applied_rule._delObject(movement.getId()) # XXXX Make sur this is not deleted if already in delivery
applied_rule._delObject(movement.getId()) # XXXX Make sure this is not deleted if already in delivery
else:
existing_uid_list += [delivery_value.getUid()]
......
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