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 @@
parent_applied_rule = movement.getParentValue()\n
parent_rule = parent_applied_rule.getSpecialiseValue()\n
return (\n
root_rule.getPortalType() in ("Production Order Rule",\n
"Production Order Simulation Rule") and\\\n
(parent_rule.getPortalType() in ("Transformation Sourcing Rule",\n
"Delivering Rule",\n
"Delivering Simulation Rule")) and\\\n
((root_rule.getPortalType() in ("Production Order Rule",) and\\\n
parent_rule.getPortalType() in ("Transformation Sourcing Rule",\n
"Production Order Rule")) or\\\n
(root_rule.getPortalType() in ("Production Order Simulation Rule",) and\\\n
parent_rule.getPortalType() in ("Transformation Sourcing Rule",\n
"Delivering Simulation Rule"))) and\\\n
root_movement.getSimulationState() == "confirmed"\n
)\n
\n
......
419
\ No newline at end of file
420
\ 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