Commit 8550d3f3 authored by Yoshinori Okuji's avatar Yoshinori Okuji

addAction must be passed a text instead of an expression object.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3314 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe3b3c75
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment