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

remove hardcoded workflow_id. Thanks Lukazs


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21978 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6f0546c2
......@@ -50,7 +50,6 @@ class TestOrderMixin:
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 @@ class TestOrderMixin:
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)
......
......@@ -48,7 +48,6 @@ class TestProductionOrderMixin(TestOrderMixin):
transformed_resource_portal_type = \
'Apparel Transformation Transformed Resource'
operation_line_portal_type = 'Apparel Transformation Operation'
order_workflow_id='production_order_workflow'
def getBusinessTemplateList(self):
"""
......
......@@ -42,7 +42,6 @@ class TestPurchaseOrder(TestOrder):
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"
......
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