[Erp5-report] r45692 jerome - /erp5/trunk/products/ERP5/Document/Delivery.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 27 14:35:22 CEST 2011


Author: jerome
Date: Wed Apr 27 14:35:22 2011
New Revision: 45692

URL: http://svn.erp5.org?rev=45692&view=rev
Log:
Non simulated packing list are no longer divergent since r44313, so it's no
longer required to handle the non simulated case explicitly here.

Modified:
    erp5/trunk/products/ERP5/Document/Delivery.py

Modified: erp5/trunk/products/ERP5/Document/Delivery.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Delivery.py?rev=45692&r1=45691&r2=45692&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Delivery.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Delivery.py [utf8] Wed Apr 27 14:35:22 2011
@@ -387,10 +387,7 @@ class Delivery(XMLObject, Immobilisation
       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:



More information about the Erp5-report mailing list