[Erp5-report] r41456 tatuya - /erp5/trunk/products/ERP5/Document/SimulationMovement.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Dec 15 12:55:12 CET 2010
Author: tatuya
Date: Wed Dec 15 12:55:12 2010
New Revision: 41456
URL: http://svn.erp5.org?rev=41456&view=rev
Log:
Accept the case that the Simulation Movement is a Temp Simulation Movement.
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=41456&r1=41455&r2=41456&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] Wed Dec 15 12:55:12 2010
@@ -312,7 +312,11 @@ class SimulationMovement(PropertyRecorda
"""
delivery_value = self.getDeliveryValue()
if delivery_value is None:
- ra = self.getRootAppliedRule()
+ # If the parent is not an Applied Rule, self does not have the method.
+ if getattr(self, 'getRootAppliedRule', None) is not None:
+ ra = self.getRootAppliedRule()
+ else:
+ return None
order = ra.getCausalityValue()
if order is not None:
return order
More information about the Erp5-report
mailing list