Commit d49d0c52 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_core: Do not migrate erp5_core as the migration is full of errors.

We do not configure portal_actions and views properly hence there are lot many bugs in views
after installation.
parent 12acbbbb
......@@ -2233,11 +2233,8 @@ class ERP5Generator(PortalGenerator):
tool = p.portal_workflow
tool.manage_delObjects(filter(tool.hasObject, manager_workflow_list))
tool.manage_delObjects(filter(tool.hasObject, workflow_list))
self.bootstrap_bm(tool, 'erp5_core', (
'portal_workflow/business_template_installation_workflow',
'portal_workflow/business_template_building_workflow',
'portal_types/Business Template#type_workflow_list',
))
self.bootstrap(tool, 'erp5_core', 'WorkflowTemplateItem', workflow_list)
tool.setChainForPortalTypes(('Business Template',), workflow_list)
self.bootstrap(tool, 'erp5_business_package', 'WorkflowTemplateItem', (
'business_manager_building_workflow',
'business_manager_installation_workflow',
......@@ -2396,7 +2393,7 @@ class ERP5Generator(PortalGenerator):
"""
template_tool = p.portal_templates
if template_tool.getInstalledBusinessTemplate('erp5_core') is None:
for bt in ('erp5_core', 'erp5_business_package', 'erp5_property_sheets',
for bt in ('erp5_property_sheets', 'erp5_core', 'erp5_business_package',
):
if not bt:
continue
......
......@@ -1322,7 +1322,7 @@ class TemplateTool (BaseTool):
property_dict_list.append(bm_dict_2)
property_dict_list.append(bm_dict_3)
property_dict_list.append(bm_dict_4)
property_dict_list.append(bm_dict_5)
#property_dict_list.append(bm_dict_5)
self.repository_dict[repository] = tuple(property_dict_list)
......
......@@ -62,18 +62,16 @@ class PropertySheetTool(BaseTool):
def _bootstrap(self):
bt_name = 'erp5_property_sheets'
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',
'portal_property_sheets/Comment',
# the following ones are required to upgrade an existing site
'portal_property_sheets/Reference',
'portal_property_sheets/BaseCategory',
'portal_property_sheets/SQLIdGenerator',
))
ERP5Generator.bootstrap(self, bt_name, 'PropertySheetTemplateItem', (
'BaseType',
'BusinessTemplate',
'Folder',
'SimpleItem',
'Version',
'Comment',
'Reference',
'BaseCategory',
'SQLIdGenerator',))
def install():
from ZPublisher.BaseRequest import RequestContainer
from Products.ERP5Type.Globals import get_request
......
......@@ -124,13 +124,11 @@ class TypesTool(TypeProvider):
def _bootstrap(self):
from Products.ERP5.ERP5Site import ERP5Generator
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
'portal_types/Category Property',
))
ERP5Generator.bootstrap(self, 'erp5_core', 'PortalTypeTemplateItem', (
'Business Template',
'Standard Property',
'Acquired Property',
'Category Property'))
# Bootstrap Business Manager as it'll be needed while installation
ERP5Generator.bootstrap(self, 'erp5_business_package', 'PortalTypeTemplateItem', (
'Business Manager',
......
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