Commit 4f10e5da authored by Jérome Perrin's avatar Jérome Perrin

pass rule_reference to Order.updateAppliedRule, passing rule_id is deprecated

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21617 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5dc9b41d
......@@ -70,7 +70,8 @@
previous_tag = order.getPath() + \'_firstUpdateAppliedRule\'\n
expand_tag = order.getPath() + \'_expand\'\n
activate_kw = {\'tag\':expand_tag,\'priority\':3}\n
order.activate(tag=expand_tag,after_tag=previous_tag).updateAppliedRule(rule_id = \'default_order_rule\',activate_kw=activate_kw)\n
order.activate(tag=expand_tag, after_tag=previous_tag).updateAppliedRule(\n
rule_reference=\'default_order_rule\', activate_kw=activate_kw)\n
\n
\n
order_portal_type = order.getPortalType()\n
......
......@@ -69,7 +69,8 @@
\n
tag = order.getPath() + \'_firstUpdateAppliedRule\'\n
activate_kw = {\'tag\':tag,\'priority\':3}\n
order.activate(tag=tag).updateAppliedRule(rule_id = \'default_order_rule\',activate_kw=activate_kw)\n
order.activate(tag=tag).updateAppliedRule(rule_reference=\'default_order_rule\',\n
activate_kw=activate_kw)\n
</string> </value>
</item>
<item>
......
375
\ No newline at end of file
377
\ 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