Commit c649ed0d authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_configurator: check and create with correct portal type value

See merge request !1403
parents 9612e94d 074c55ba
Pipeline #15148 failed with stage
in 0 seconds
...@@ -32,7 +32,7 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow): ...@@ -32,7 +32,7 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
if subobject.getPortalType() == 'State': if subobject.getPortalType() == 'State':
state = workflow.newContent( state = workflow.newContent(
portal_type='State', portal_type='Workflow State',
reference=reference, reference=reference,
title=title, title=title,
destination_list=getCategoryList('transition_', subobject.getDestinationValueList()), destination_list=getCategoryList('transition_', subobject.getDestinationValueList()),
...@@ -42,7 +42,7 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow): ...@@ -42,7 +42,7 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
portal_type='Business Configuration'): portal_type='Business Configuration'):
business_configuration.setCurrentStateValue(state) business_configuration.setCurrentStateValue(state)
elif subobject.getPortalType() == 'Workflow Transition': elif subobject.getPortalType() == 'Transition':
# XXX_1: Workflows only call Workflow Script and do not call Python Script in # XXX_1: Workflows only call Workflow Script and do not call Python Script in
# portal_skins but Configurator Workflows do. For now leave them as they # portal_skins but Configurator Workflows do. For now leave them as they
# ({before,after}_script_id property) but they should be migrated later on. # ({before,after}_script_id property) but they should be migrated later on.
......
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