[Erp5-report] r21988 - in /erp5/trunk/bt5/erp5_mrp: WorkflowTemplateItem/portal_workflow/pr...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 26 17:45:24 CEST 2008
Author: luke
Date: Thu Jun 26 17:45:21 2008
New Revision: 21988
URL: http://svn.erp5.org?rev=21988&view=rev
Log:
- use packing list to guess builders
- select builders for proper portal type for this workflow
Modified:
erp5/trunk/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_causality_workflow/scripts/PackingList_split.xml
erp5/trunk/bt5/erp5_mrp/bt/revision
Modified: erp5/trunk/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_causality_workflow/scripts/PackingList_split.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_causality_workflow/scripts/PackingList_split.xml?rev=21988&r1=21987&r2=21988&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_causality_workflow/scripts/PackingList_split.xml (original)
+++ erp5/trunk/bt5/erp5_mrp/WorkflowTemplateItem/portal_workflow/production_packing_list_causality_workflow/scripts/PackingList_split.xml Thu Jun 26 17:45:21 2008
@@ -93,11 +93,11 @@
# 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 @@
<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>
Modified: erp5/trunk/bt5/erp5_mrp/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_mrp/bt/revision?rev=21988&r1=21987&r2=21988&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_mrp/bt/revision (original)
+++ erp5/trunk/bt5/erp5_mrp/bt/revision Thu Jun 26 17:45:21 2008
@@ -1,1 +1,1 @@
-252
+253
More information about the Erp5-report
mailing list