[Erp5-report] r39030 jm - /erp5/trunk/products/ERP5/Document/SimulationMovement.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 11 21:26:06 CEST 2010
Author: jm
Date: Mon Oct 11 21:26:04 2010
New Revision: 39030
URL: http://svn.erp5.org?rev=39030&view=rev
Log:
Fix SimulationMovement.asComposedDocument for old rules
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=39030&r1=39029&r2=39030&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] Mon Oct 11 21:26:04 2010
@@ -320,7 +320,11 @@ class SimulationMovement(Movement, Prope
delivery_value = self.getDeliveryValue()
if delivery_value is not None:
return delivery_value.asComposedDocument(*args, **kw)
- self = self.getParentValue().getParentValue()
+ # below code is for compatibility with old rules
+ grand_parent = self.getParentValue().getParentValue()
+ if grand_parent.getPortalType() == 'Simulation Tool':
+ return self.getOrderValue().asComposedDocument(*args, **kw)
+ self = grand_parent
# Deliverability / orderability
security.declareProtected( Permissions.AccessContentsInformation,
More information about the Erp5-report
mailing list