Commit 59ccb88d authored by Julien Muchembled's avatar Julien Muchembled

Fix replacing actions when installing BT

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/portal_types@29245 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27fce95d
......@@ -2462,9 +2462,9 @@ class ActionTemplateItem(ObjectTemplateItem):
obj.moveDownActions(selections=tuple(move_down_list))
for path, action_dict in portal_type_dict.iteritems():
container = p.unrestrictedTraverse(path)
for obj in container.objectValues(meta_type='ERP5 Action Information'):
if obj.reference in action_dict:
container._delObject(obj.id)
container.manage_delObjects([obj.id
for obj in container.objectValues(meta_type='ERP5 Action Information')
if obj.reference in action_dict])
for obj in action_dict.itervalues():
container._importOldAction(obj)
else:
......
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