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): ...@@ -534,11 +534,12 @@ class ActionTemplateItem(BaseTemplateItem):
if getattr(ai, key) == value: if getattr(ai, key) == value:
raise TemplateConflictError, 'the portal type %s already has the action %s' % (object.id, value) raise TemplateConflictError, 'the portal type %s already has the action %s' % (object.id, value)
object.addAction( object.addAction(
action.id id = action.id
, action.title , name = action.title
, action.action , action = action.action
, action.permission , condition = action.condition
, action.category , permission = action.permissions
, category = action.category
, visible=action.visible , 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