Commit 17868716 authored by Julien Muchembled's avatar Julien Muchembled

Fix searching of trade model paths having several trade phases

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37455 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b42090ba
...@@ -188,7 +188,7 @@ class ExplanationCache: ...@@ -188,7 +188,7 @@ class ExplanationCache:
parent = obj.getParentValue() parent = obj.getParentValue()
if parent is not None: if parent is not None:
if parent.getPortalType() == "Simulation Movement" and \ if parent.getPortalType() == "Simulation Movement" and \
parent.getCausalityValue().getTradePhase(base=1) == trade_phase: parent.getCausalityValue().isMemberOf(trade_phase, strict_membership=1):
movement_list.append(parent) movement_list.append(parent)
getParentSimulationMovementValueList(parent, movement_list, trade_phase) getParentSimulationMovementValueList(parent, movement_list, trade_phase)
...@@ -196,7 +196,7 @@ class ExplanationCache: ...@@ -196,7 +196,7 @@ class ExplanationCache:
child_list = obj.objectValues() child_list = obj.objectValues()
for child in child_list: for child in child_list:
if child.getPortalType() == "Simulation Movement" and \ if child.getPortalType() == "Simulation Movement" and \
child.getCausalityValue().getTradePhase(base=1) == trade_phase: child.getCausalityValue().isMemberOf(trade_phase, strict_membership=1):
movement_list.append(child) movement_list.append(child)
getChildSimulationMovementValueList(child, movement_list, trade_phase) getChildSimulationMovementValueList(child, movement_list, trade_phase)
......
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