Commit be6274b2 authored by Nicolas Dumazet's avatar Nicolas Dumazet

when _one_ of the movements has no delivery, we can break early


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36565 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 13d5e351
...@@ -236,6 +236,7 @@ class BusinessPath(Path, Predicate): ...@@ -236,6 +236,7 @@ class BusinessPath(Path, Predicate):
explanation): explanation):
if simulation_movement.getDeliveryValue() is None: if simulation_movement.getDeliveryValue() is None:
result = True result = True
break
predecessor = self.getPredecessorValue() predecessor = self.getPredecessorValue()
if predecessor is None: if predecessor is None:
return result return result
......
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