Commit d3043dac authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use reference instead of portal type in rule's condition.

parent 7b686ce6
......@@ -56,8 +56,7 @@ parent = movement.getParentValue()\n
if parent.getPortalType() != \'Applied Rule\':\n
return False\n
\n
parent_rule = parent.getSpecialiseValue()\n
if parent_rule.getPortalType() not in (\'Invoice Transaction Simulation Rule\',):\n
if parent.getSpecialiseReference() != \'default_invoice_transaction_rule\':\n
return False\n
\n
# XXX hardcoded\n
......
1463
\ No newline at end of file
1464
\ 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