Commit 3a7c8cd0 authored by Sebastien Robin's avatar Sebastien Robin

we must be able to find a business process when following specialise

category on simulation movements

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45362 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ba400fc
...@@ -297,13 +297,16 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin): ...@@ -297,13 +297,16 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin):
setattr(self, property_name, document) setattr(self, property_name, document)
return document return document
simulation_movement_kw = {
'specialise': self.business_process.getRelativeUrl()}
def constructSimulationTree(applied_rule, prefix=None): def constructSimulationTree(applied_rule, prefix=None):
document = setTestClassProperty(prefix, 'simulation_movement', document = setTestClassProperty(prefix, 'simulation_movement',
applied_rule.newContent( applied_rule.newContent(
portal_type = 'Simulation Movement', portal_type = 'Simulation Movement',
delivery_value = order_line, delivery_value = order_line,
trade_phase='default/order', trade_phase='default/order',
causality_value_list=[self.order_link, self.order_path] causality_value_list=[self.order_link, self.order_path],
**simulation_movement_kw
)) ))
if simulation_depth > 1: if simulation_depth > 1:
...@@ -316,7 +319,8 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin): ...@@ -316,7 +319,8 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin):
document.newContent( document.newContent(
portal_type='Simulation Movement', portal_type='Simulation Movement',
trade_phase='default/delivery', trade_phase='default/delivery',
causality_value_list=[self.delivery_link, self.delivery_path])) causality_value_list=[self.delivery_link, self.delivery_path],
**simulation_movement_kw))
if simulation_depth > 2: if simulation_depth > 2:
...@@ -329,7 +333,8 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin): ...@@ -329,7 +333,8 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin):
document.newContent( document.newContent(
portal_type='Simulation Movement', portal_type='Simulation Movement',
trade_phase='default/invoicing', trade_phase='default/invoicing',
causality_value_list=[self.invoice_link, self.invoice_path])) causality_value_list=[self.invoice_link, self.invoice_path],
**simulation_movement_kw))
constructSimulationTree(self.applied_rule) constructSimulationTree(self.applied_rule)
if dummy_split: if dummy_split:
......
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