Commit 6e358860 authored by Łukasz Nowak's avatar Łukasz Nowak

Only reset Business Link.

parent 365776ff
...@@ -131,8 +131,10 @@ class SimulatedDeliveryBuilder(BuilderMixin): ...@@ -131,8 +131,10 @@ class SimulatedDeliveryBuilder(BuilderMixin):
if movement.getDeliveryValueList()==[]: if movement.getDeliveryValueList()==[]:
movement_list.append(movement) movement_list.append(movement)
else: else:
# drop causality links # drop causality links to Business Paths/States
movement.setCausalityList([]) movement.setCausalityList([q.getRelativeUrl() for q in \
movement.getCausalityValueList() if q.getPortalType() \
not in self.getPortalBusinessLinkTypeList()])
# XXX Add predicate test # XXX Add predicate test
# XXX FIXME Check that there is no double in the list # XXX FIXME Check that there is no double in the list
# Because we can't trust simulation_select_method # Because we can't trust simulation_select_method
......
...@@ -191,4 +191,6 @@ class MovementCollectionUpdaterMixin: ...@@ -191,4 +191,6 @@ class MovementCollectionUpdaterMixin:
# for each touched non buildable movement reset causality_list # for each touched non buildable movement reset causality_list
if not movement.isBuildable(movement.getCausalityValue( if not movement.isBuildable(movement.getCausalityValue(
portal_type='Business Link')): portal_type='Business Link')):
movement.setCausalityList([]) movement.setCausalityList([q.getRelativeUrl() for q in \
movement.getCausalityValueList() if q.getPortalType() \
not in self.getPortalBusinessLinkTypeList()])
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