Commit 93594f07 authored by Łukasz Nowak's avatar Łukasz Nowak

- use packing list to guess builders

- select builders for proper portal type for this workflow

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21988 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a75183a
......@@ -93,11 +93,11 @@ applied_rule = order.getCausalityRelatedValue(portal_type="Applied Rule")\n
# reindex simulation movement as quick as possible\n
#applied_rule.recursiveImmediateReindexObject()\n
\n
order_portal_type = order.getPortalType()\n
if order_portal_type == \'Sale Order\':\n
delivery_builder = order.portal_deliveries.sale_packing_list_builder\n
elif order_portal_type == \'Purchase Order\':\n
delivery_builder = order.portal_deliveries.purchase_packing_list_builder\n
packing_list_portal_type = packing_list.getPortalType()\n
if packing_list_portal_type == \'Production Packing List\':\n
delivery_builder = packing_list.portal_deliveries.production_packing_list_builder\n
elif packing_list_portal_type == \'Production Report\':\n
delivery_builder = packing_list.portal_deliveries.production_report_builder\n
\n
\n
explanation_uid_list = [order.getUid(),packing_list.getUid()]\n
......@@ -154,7 +154,7 @@ delivery_builder.activate(activity=\'SQLQueue\',after_tag=tag).build(explanation
<string>None</string>
<string>order</string>
<string>applied_rule</string>
<string>order_portal_type</string>
<string>packing_list_portal_type</string>
<string>delivery_builder</string>
<string>explanation_uid_list</string>
</tuple>
......
252
\ No newline at end of file
253
\ 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