Commit 428fdd70 authored by Julien Muchembled's avatar Julien Muchembled

Fix SimulationMovement.asComposedDocument for old rules

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39030 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9725cad1
......@@ -320,7 +320,11 @@ class SimulationMovement(Movement, PropertyRecordableMixin):
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,
......
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