From 2b0efea164b0547f3ed71ccd35e473a528870d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 9 Oct 2007 09:12:13 +0000 Subject: [PATCH] use applyToDeliveryRelatedMovement API instead of finding Simulation Movement "by hand". This also will allow to make Simulation Movement private. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16897 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../scripts/Delivery_reindexRelatedSimulationMovement.xml | 5 +---- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml b/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml index e104db4427..13fb0f5637 100644 --- a/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml +++ b/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml @@ -86,10 +86,7 @@ with an up to date simulation state.\n """\n \n delivery = state_change[\'object\']\n -\n -for movement in delivery.getMovementList() : \n - for simulation_movement in movement.getDeliveryRelatedValueList() :\n - simulation_movement.recursiveReindexObject()\n +delivery.applyToDeliveryRelatedMovement(method_id=\'recursiveReindexobject\')\n </string> </value> </item> <item> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 37e6f1741c..1dd3380cdc 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -515 \ No newline at end of file +516 \ No newline at end of file -- 2.30.9