From 2f23cd2fea245bc945bbeaa008092c61ec86a417 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Wed, 28 Jul 2010 05:42:40 +0000
Subject: [PATCH] add Manager Proxy role to workflow script, and fix category
 target

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37311 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../scripts/Movement_copyQuantityUnitFromResource.xml  | 10 +++++++++-
 bt5/erp5_base/bt/revision                              |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/movement_resource_interaction_workflow/scripts/Movement_copyQuantityUnitFromResource.xml b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/movement_resource_interaction_workflow/scripts/Movement_copyQuantityUnitFromResource.xml
index 549be255c2..a316097050 100644
--- a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/movement_resource_interaction_workflow/scripts/Movement_copyQuantityUnitFromResource.xml
+++ b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/movement_resource_interaction_workflow/scripts/Movement_copyQuantityUnitFromResource.xml
@@ -57,7 +57,7 @@
 \n
 resource = movement.getResourceValue()\n
 if resource is not None:\n
-  movement.setBaseContributionList(resource.getBaseContributionList())\n
+  movement.setQuantityUnitList(resource.getQuantityUnitList())\n
 </string> </value>
         </item>
         <item>
@@ -70,6 +70,14 @@ if resource is not None:\n
             <key> <string>_params</string> </key>
             <value> <string>state_change</string> </value>
         </item>
+        <item>
+            <key> <string>_proxy_roles</string> </key>
+            <value>
+              <tuple>
+                <string>Manager</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>errors</string> </key>
             <value>
diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision
index ae645ab7e8..68c7a41704 100644
--- a/bt5/erp5_base/bt/revision
+++ b/bt5/erp5_base/bt/revision
@@ -1 +1 @@
-817
+818
-- 
2.30.9