Commit 4d83745d authored by Łukasz Nowak's avatar Łukasz Nowak

Build everything and just use Business Paths.

parent ac13748c
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
business_process = portal.business_process_module.vifib_sale_business_process\n
\n \n
build_before = None\n build_before = None\n
if params is not None:\n if params is not None:\n
...@@ -60,9 +59,11 @@ if params is not None:\n ...@@ -60,9 +59,11 @@ if params is not None:\n
else:\n else:\n
kw = {}\n kw = {}\n
\n \n
for link in business_process.contentValues(portal_type="Business Link"):\n for business_process in [\n
for delivery_builder in link.getDeliveryBuilderValueList():\n portal.business_process_module.vifib_sale_business_process,\n
delivery_builder.activate().build(**kw)\n portal.business_process_module.vifib_purchase_business_process]:\n
for link in business_process.contentValues(portal_type="Business Link"):\n
link.build(**kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
483 484
\ 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