Commit 6e3b566d authored by Jérome Perrin's avatar Jérome Perrin

Pass rule_reference to updateAppliedRule instead of rule_id


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21706 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 071533a9
......@@ -76,14 +76,17 @@ if related_order is not None:\n
tag = packing_list.getPath()+\'_expand\'\n
activate_kw = {\'tag\':tag,\'priority\':3}\n
\n
packing_list.activate(after_path=after_path_list,tag=tag,\n
priority=3).updateAppliedRule(rule_id = \'default_delivery_rule\',activate_kw=activate_kw)\n
packing_list.activate(after_path=after_path_list,\n
tag=tag,\n
priority=3).updateAppliedRule(rule_reference=\'default_delivery_rule\',\n
activate_kw=activate_kw)\n
\n
\n
# Make sure to reindex related simulation movement if we are already\n
# simulated, call reindexObject, not immediateReindexObject so that\n
# catalogObjectList will be called with many objects\n
packing_list.activate(after_path=after_path_list,tag=tag,\n
packing_list.activate(after_path=after_path_list,\n
tag=tag,\n
priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n
\n
packing_list.startBuilding()\n
......
387
\ No newline at end of file
388
\ 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