From a5c28be6a3c2683858c68725258d69270ea80f7c Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Thu, 25 Nov 2004 13:23:23 +0000
Subject: [PATCH] Call transition 'edit_action' instead of 'copy' from
 edit_workflow in manage_afterClone.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1931 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/CopySupport.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/product/ERP5Type/CopySupport.py b/product/ERP5Type/CopySupport.py
index ee9876ca72..38ebe4edb5 100755
--- a/product/ERP5Type/CopySupport.py
+++ b/product/ERP5Type/CopySupport.py
@@ -200,14 +200,14 @@ class CopyContainer:
       else :
         source_item = '/'.join(copied_item_list[0])
       try :
-        pw.doActionFor(self_base, 'copy', wf_id='edit_workflow', comment='Object copied from %s' % source_item)
+        pw.doActionFor(self_base, 'edit_action', wf_id='edit_workflow', comment='Object copied from %s' % source_item)
       except :
-        LOG('manage_afterPaste :', 0, '''Impossible to call transition 'copy' of 'edit_workflow' for %s''' % self.getRelativeUrl())
+        LOG('manage_afterPaste :', 0, '''Impossible to call transition 'edit_action' of 'edit_workflow' for %s''' % self.getRelativeUrl())
     else :
       try :
-        pw.doActionFor(self_base, 'copy', wf_id='edit_workflow', comment='Object copied as %s' % item.getId())
+        pw.doActionFor(self_base, 'edit_action', wf_id='edit_workflow', comment='Object copied as %s' % item.getId())
       except :
-        LOG('manage_afterPaste :', 0, '''Impossible to call transition 'copy' of 'edit_workflow' for %s''' % self.getRelativeUrl())
+        LOG('manage_afterPaste :', 0, '''Impossible to call transition 'edit_action' of 'edit_workflow' for %s''' % self.getRelativeUrl())
 
 
     self.__recurse('manage_afterClone', item)
-- 
2.30.9