Commit 9593d42e authored by Guillaume Michon's avatar Guillaume Michon

Bug fix on Actions install


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2442 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97d80417
......@@ -534,11 +534,12 @@ class ActionTemplateItem(BaseTemplateItem):
if getattr(ai, key) == value:
raise TemplateConflictError, 'the portal type %s already has the action %s' % (object.id, value)
object.addAction(
action.id
, action.title
, action.action
, action.permission
, action.category
id = action.id
, name = action.title
, action = action.action
, condition = action.condition
, permission = action.permissions
, category = action.category
, visible=action.visible
)
......
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