diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 2349261f70f8a8b16bd0199ec0806b30549f4355..e5010f4e978d7b2b9231d753e74e3b4a2f88279b 100755
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -581,6 +581,7 @@ class ActionTemplateItem(BaseTemplateItem):
       object = p.unrestrictedTraverse(relative_url)
       for ai in object.listActions():
         if getattr(ai, key) == value:
+          #LOG('BusinessTemplate', 0, 'ai = %r, ai.action = %r, key = %r, value = %r' % (ai, ai.action, key, value))
           self._archive[id] = ai._getCopy(context)
           self._archive[id].wl_clearLocks()
           break
@@ -599,7 +600,7 @@ class ActionTemplateItem(BaseTemplateItem):
       object.addAction(
                     id = action.id
                   , name = action.title
-                  , action = action.action
+                  , action = action.action.text
                   , condition = action.condition
                   , permission = action.permissions
                   , category = action.category