Commit 635c874b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix bug of supporting new simulation hierarchy.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32535 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c8c7099b
......@@ -64,7 +64,7 @@ order = root_applied_rule.getCausalityValue()\n
\n
# Test movement\n
if (root_rule is None or\n
root_rule.getPortalType() != "Production Order Model Rule" or\n
root_rule.getPortalType() not in ("Production Order Model Rule", "Production Order Model Simulation Rule") or\n
order is None or\n
movement.getSource() is None):\n
return False\n
......
......@@ -65,7 +65,7 @@ parent_rule = movement.getParentValue().getSpecialiseValue()\n
\n
# Test movement\n
if (root_rule is None or\n
root_rule.getPortalType() != "Production Order Model Rule" or\n
root_rule.getPortalType() not in ("Production Order Model Rule", "Production Order Model Simulation Rule") or\n
order is None or\n
parent_rule.getPortalType() != "Transformation Model Rule"):\n
return False\n
......
......@@ -68,7 +68,7 @@ order = root_applied_rule.getCausalityValue()\n
\n
# Test movement\n
if (root_rule is None or\n
root_rule.getPortalType() != "Production Order Rule" or\n
root_rule.getPortalType() not in ("Production Order Rule", "Production Order Simulation Rule") or\n
order is None or\n
movement.getResourceValue() is None or\n
movement.getSourceValue() is None):\n
......
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