Commit a9ddb772 authored by Tatuya Kamada's avatar Tatuya Kamada

Accept the case that the Simulation Movement is a Temp Simulation Movement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41456 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8ed4615b
......@@ -312,7 +312,11 @@ class SimulationMovement(PropertyRecordableMixin, Movement, ExplainableMixin):
"""
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
......
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