Commit 1cd3e5a6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

the way to get grand parent applied rule portal type was wrong.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4ed0d20
...@@ -63,7 +63,7 @@ if parent.getPortalType() == \'Applied Rule\':\n ...@@ -63,7 +63,7 @@ if parent.getPortalType() == \'Applied Rule\':\n
return False\n return False\n
# XXX can we create invoicing rule for Production Order?\n # XXX can we create invoicing rule for Production Order?\n
if parent_rule_portal_type in [\'Delivering Simulation Rule\',] and \\\n if parent_rule_portal_type in [\'Delivering Simulation Rule\',] and \\\n
parent_rule.getParentValue().getParentValue().getPortalType() not in [\'Order Simulation Rule\']:\n parent.getParentValue().getParentValue().getSpecialiseValue().getPortalType() not in [\'Order Simulation Rule\']:\n
return False\n return False\n
\n \n
source_section = movement.getSourceSection()\n source_section = movement.getSourceSection()\n
......
331 332
\ 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