Commit 0643ccfc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix bugs in select methods to support both legacy and new simulation hierarchy.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32705 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef2b5583
...@@ -60,11 +60,12 @@ ...@@ -60,11 +60,12 @@
parent_applied_rule = movement.getParentValue()\n parent_applied_rule = movement.getParentValue()\n
parent_rule = parent_applied_rule.getSpecialiseValue()\n parent_rule = parent_applied_rule.getSpecialiseValue()\n
return (\n return (\n
root_rule.getPortalType() in ("Production Order Rule",\n ((root_rule.getPortalType() in ("Production Order Rule",) and\\\n
"Production Order Simulation Rule") and\\\n parent_rule.getPortalType() in ("Transformation Sourcing Rule",\n
(parent_rule.getPortalType() in ("Transformation Sourcing Rule",\n "Production Order Rule")) or\\\n
"Delivering Rule",\n (root_rule.getPortalType() in ("Production Order Simulation Rule",) and\\\n
"Delivering Simulation Rule")) and\\\n parent_rule.getPortalType() in ("Transformation Sourcing Rule",\n
"Delivering Simulation Rule"))) and\\\n
root_movement.getSimulationState() == "confirmed"\n root_movement.getSimulationState() == "confirmed"\n
)\n )\n
\n \n
......
419 420
\ No newline at end of file \ No newline at end of file
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