Commit a18985aa authored by Nicolas Dumazet's avatar Nicolas Dumazet

Activity Tool is now an ERP5 Tool


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42918 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4a99881
......@@ -1610,9 +1610,8 @@ class ERP5Generator(PortalGenerator):
make sure that we do not put un the queue the full reindexation
"""
# Add Activity Tool
if create_activities and not p.hasObject('portal_activities'):
addTool = p.manage_addProduct['CMFActivity'].manage_addTool
addTool('CMF Activity Tool', None) # Allow user to select active/passive
if create_activities:
addERP5Tool(p, 'portal_activities', 'Activity Tool')
# Initialize Activities
p.portal_activities.manageClearActivities(keep=0)
......
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