diff --git a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml index 34c8f76ea9d5c6dcb59c71ec2f40b568a7e2339c..bcbbb1f4d1ebb8ae02e0b3c69885079a55f46d34 100644 --- a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml +++ b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml @@ -67,11 +67,14 @@ ...\n \n This script reindex simulation movements in (1), so that delivery builder select movement in (2)\n -with an up to date simulation state.\n +with an up to date simulation state. We reindex simulation movements with the tag _updateAppliedRule,\n +because that delivery builder builds after that tag.\n """\n \n delivery = state_change[\'object\']\n -delivery.applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\')\n +tag = \'%s_updateAppliedRule\' % delivery.getPath()\n +delivery.applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\',\n + activate_kw=dict(tag=tag))\n </string> </value> </item> <item> @@ -112,6 +115,8 @@ delivery.applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\')\n <string>_getitem_</string> <string>delivery</string> <string>_getattr_</string> + <string>tag</string> + <string>dict</string> </tuple> </value> </item> diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index 4aeea8c347a8635cbeae91d0ec2df1c15958527f..f874bfc9fc8e538830cba7dee0812429b50ab4c0 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -650 \ No newline at end of file +651 \ No newline at end of file