Commit 9b52d98f authored by Jérome Perrin's avatar Jérome Perrin

Delivery Causality Assignment Movement group must return the delivery


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 092c5378
...@@ -45,10 +45,11 @@ class DeliveryCausalityAssignmentMovementGroup(CausalityAssignmentMovementGroup) ...@@ -45,10 +45,11 @@ class DeliveryCausalityAssignmentMovementGroup(CausalityAssignmentMovementGroup)
parent = parent.getParentValue() parent = parent.getParentValue()
delivery_movement = parent.getDeliveryValue() delivery_movement = parent.getDeliveryValue()
if delivery_movement is not None: if delivery_movement is not None:
delivery = delivery_movement.getExplanationValue()
causality = property_dict.get('causality_list', []) causality = property_dict.get('causality_list', [])
delivery_movement_url = delivery_movement.getRelativeUrl() delivery_url = delivery.getRelativeUrl()
if delivery_movement_url not in causality: if delivery_url not in causality:
causality.append(delivery_movement_url) causality.append(delivery_url)
property_dict['causality_list'] = causality property_dict['causality_list'] = causality
return property_dict return 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