Commit e973c580 authored by Jérome Perrin's avatar Jérome Perrin

Non simulated packing list are no longer divergent since r44313, so it's no

longer required to handle the non simulated case explicitly here.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45692 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd1d92a6
......@@ -387,10 +387,7 @@ class Delivery(XMLObject, ImmobilisationDelivery,
if isTransitionPossible(self, 'diverge') and \
isTransitionPossible(self, 'converge'):
if self.isDivergent(**kw):
# If delivery is not simulated (PackingList.isDivergent()
# returns True in such a case), we cannot solve divergence
# anyway.
if self.isSimulated() and solve_automatically and \
if solve_automatically and \
isTransitionPossible(self, 'solve_automatically'):
self.solveAutomatically()
else:
......
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