[Erp5-report] r21978 - /erp5/trunk/products/ERP5/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jun 26 16:37:52 CEST 2008


Author: jerome
Date: Thu Jun 26 16:37:43 2008
New Revision: 21978

URL: http://svn.erp5.org?rev=21978&view=rev
Log:
remove hardcoded workflow_id. Thanks Lukazs

Modified:
    erp5/trunk/products/ERP5/tests/testOrder.py
    erp5/trunk/products/ERP5/tests/testProductionOrder.py
    erp5/trunk/products/ERP5/tests/testPurchaseOrder.py

Modified: erp5/trunk/products/ERP5/tests/testOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testOrder.py?rev=21978&r1=21977&r2=21978&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testOrder.py (original)
+++ erp5/trunk/products/ERP5/tests/testOrder.py Thu Jun 26 16:37:43 2008
@@ -50,7 +50,6 @@
   packing_list_line_portal_type = 'Sale Packing List Line'
   packing_list_cell_portal_type = 'Sale Packing List Cell'
   delivery_builder_id = 'sale_packing_list_builder'
-  order_workflow_id='order_workflow'
   size_list = ['Baby','Child/32','Child/34','Man','Woman']
 
   def getBusinessTemplateList(self):
@@ -738,8 +737,7 @@
   def modifyOrderState(self, transition_name, sequence=None,
                        sequence_list=None):
     order = sequence.get('order')
-    order.portal_workflow.doActionFor(order, transition_name, \
-                                      wf_id=self.order_workflow_id)
+    order.portal_workflow.doActionFor(order, transition_name)
 
   def stepPlanOrder(self, sequence=None, sequence_list=None, **kw):
     self.modifyOrderState('plan_action', sequence=sequence)

Modified: erp5/trunk/products/ERP5/tests/testProductionOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testProductionOrder.py?rev=21978&r1=21977&r2=21978&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testProductionOrder.py (original)
+++ erp5/trunk/products/ERP5/tests/testProductionOrder.py Thu Jun 26 16:37:43 2008
@@ -48,7 +48,6 @@
   transformed_resource_portal_type = \
                         'Apparel Transformation Transformed Resource'
   operation_line_portal_type = 'Apparel Transformation Operation'
-  order_workflow_id='production_order_workflow'
 
   def getBusinessTemplateList(self):
     """

Modified: erp5/trunk/products/ERP5/tests/testPurchaseOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testPurchaseOrder.py?rev=21978&r1=21977&r2=21978&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testPurchaseOrder.py (original)
+++ erp5/trunk/products/ERP5/tests/testPurchaseOrder.py Thu Jun 26 16:37:43 2008
@@ -42,7 +42,6 @@
   packing_list_line_portal_type = 'Purchase Packing List Line'
   packing_list_cell_portal_type = 'Purchase Packing List Cell'
   delivery_builder_id = 'purchase_packing_list_builder'
-  order_workflow_id='order_workflow'
 
   def getTitle(self):
     return "Purchase Order"




More information about the Erp5-report mailing list