[Erp5-report] r45812 jerome - /erp5/trunk/products/ERP5/Document/SimulationMovement.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 4 11:59:31 CEST 2011


Author: jerome
Date: Wed May  4 11:59:30 2011
New Revision: 45812

URL: http://svn.erp5.org?rev=45812&view=rev
Log:
if a simulation movment has been explicitly marked as frozen, use this and not the info from business process

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

Modified: erp5/trunk/products/ERP5/Document/SimulationMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SimulationMovement.py?rev=45812&r1=45811&r2=45812&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] Wed May  4 11:59:30 2011
@@ -226,6 +226,8 @@ class SimulationMovement(PropertyRecorda
     """Lookup business path and, if any, return True whenever
     simulation_state is in one of the frozen states defined on business path
     """
+    if self._baseGetFrozen():
+      return True
     business_link =  self.getCausalityValue(
                          portal_type=self.getPortalBusinessLinkTypeList())
     if business_link is None:
@@ -235,7 +237,7 @@ class SimulationMovement(PropertyRecorda
         return True
       if self._baseIsFrozen() == 0:
         self._baseSetFrozen(None)
-      return self._baseGetFrozen() or False
+      return False
     return self.getSimulationState() in business_link.getFrozenStateList()
 
   security.declareProtected( Permissions.AccessContentsInformation,



More information about the Erp5-report mailing list