diff --git a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_causality_workflow/scripts/Delivery_afterEdit.xml b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_causality_workflow/scripts/Delivery_afterEdit.xml index 7a42daafdea19bf796c511d4cce74272b7bd72f9..42a9dd4a7fec892515fe6e2ab3946e3e529719ca 100644 --- a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_causality_workflow/scripts/Delivery_afterEdit.xml +++ b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_causality_workflow/scripts/Delivery_afterEdit.xml @@ -54,7 +54,8 @@ <item> <key> <string>_body</string> </key> <value> <string>delivery = state_change[\'object\']\n -delivery.activate().updateCausalityState()\n +activate_kw = state_change[\'kwargs\'].get(\'activate_kw\') or {}\n +delivery.activate(**activate_kw).updateCausalityState()\n </string> </value> </item> <item> @@ -65,7 +66,7 @@ delivery.activate().updateCausalityState()\n </item> <item> <key> <string>_params</string> </key> - <value> <string>state_change, **kw</string> </value> + <value> <string>state_change</string> </value> </item> <item> <key> <string>_proxy_roles</string> </key> @@ -100,10 +101,11 @@ delivery.activate().updateCausalityState()\n <value> <tuple> <string>state_change</string> - <string>kw</string> <string>_getitem_</string> <string>delivery</string> <string>_getattr_</string> + <string>activate_kw</string> + <string>_apply_</string> </tuple> </value> </item> diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index 1fb8d9e69e69176dcaf94f76f644aa67d53a7995..e88ff725aa658875592c48db3d8326e3c495477e 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -601 \ No newline at end of file +602 \ No newline at end of file