Commit b6dc0727 authored by Jérome Perrin's avatar Jérome Perrin

After split and defer, call the builders in sequential order, in the order...

After split and defer, call the builders in sequential order, in the order returned by getBuilderList. This is a quick workaround for the fact that invoice_builder must operate before invoice_tax_builder, and should not have any consequences for delivery where builder order is not important.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26221 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e9c28e99
...@@ -80,9 +80,18 @@ while object is not None:\n ...@@ -80,9 +80,18 @@ while object is not None:\n
explanation_uid_list.append(object.getUid())\n explanation_uid_list.append(object.getUid())\n
object = object.getCausalityValue()\n object = object.getCausalityValue()\n
\n \n
delivery_builder_list = delivery.getBuilderList()\n previous_tag = None\n
for delivery_builder in delivery_builder_list:\n for delivery_builder in delivery.getBuilderList():\n
delivery_builder.activate(activity=\'SQLQueue\',after_tag=tag).build(explanation_uid=explanation_uid_list)\n this_builder_tag = \'%s_split_%s\' % (delivery.getPath(),\n
delivery_builder.getId())\n
after_tag = [tag]\n
if previous_tag:\n
after_tag.append(previous_tag)\n
delivery_builder.activate(activity=\'SQLQueue\',\n
tag=this_builder_tag,\n
after_tag=after_tag).build(\n
explanation_uid=explanation_uid_list)\n
previous_tag = this_builder_tag\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -133,8 +142,10 @@ for delivery_builder in delivery_builder_list:\n ...@@ -133,8 +142,10 @@ for delivery_builder in delivery_builder_list:\n
<string>None</string> <string>None</string>
<string>explanation_uid_list</string> <string>explanation_uid_list</string>
<string>object</string> <string>object</string>
<string>delivery_builder_list</string> <string>previous_tag</string>
<string>delivery_builder</string> <string>delivery_builder</string>
<string>this_builder_tag</string>
<string>after_tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
565 575
\ 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