Commit f20a1968 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: No need to bootstrap Business Template

parent a9b300ce
......@@ -2216,19 +2216,15 @@ class ERP5Generator(PortalGenerator):
"""
Set up workflows for business templates
"""
workflow_list = ['business_template_building_workflow',
'business_template_installation_workflow']
manager_workflow_list = ['business_manager_building_workflow',
'business_manager_installation_workflow']
tool = p.portal_workflow
tool.manage_delObjects(filter(tool.hasObject, workflow_list))
self.bootstrap(tool, 'erp5_core', 'WorkflowTemplateItem', workflow_list)
tool.manage_delObjects(filter(tool.hasObject, manager_workflow_list))
self.bootstrap_bm(tool, 'erp5_business_package', (
'portal_workflow/business_manager_building_workflow',
'portal_workflow/business_manager_installation_workflow',
'portal_types/Business Manager#type_workflow_list',
))
tool.setChainForPortalTypes(('Business Template',), workflow_list)
def setupIndex(self, p, **kw):
# Make sure all tools and folders have been indexed
......
......@@ -64,7 +64,6 @@ class PropertySheetTool(BaseTool):
from Products.ERP5.ERP5Site import ERP5Generator
ERP5Generator.bootstrap_bm(self, bt_name, (
'portal_property_sheets/BaseType',
'portal_property_sheets/BusinessTemplate',
'portal_property_sheets/Folder',
'portal_property_sheets/SimpleItem',
'portal_property_sheets/Version',
......
......@@ -132,7 +132,6 @@ class TypesTool(TypeProvider):
'portal_types/Business Property Item'
))
ERP5Generator.bootstrap_bm(self, 'erp5_core', (
'portal_types/Business Template',
'portal_types/Standard Property',
'portal_types/Acquired Property',
# the following ones are required to upgrade an existing site
......
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