Commit 074c55ba authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_configurator: check and create with correct portal type value

parent 9612e94d
......@@ -32,7 +32,7 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
if subobject.getPortalType() == 'State':
state = workflow.newContent(
portal_type='State',
portal_type='Workflow State',
reference=reference,
title=title,
destination_list=getCategoryList('transition_', subobject.getDestinationValueList()),
......@@ -42,7 +42,7 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
portal_type='Business Configuration'):
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
# portal_skins but Configurator Workflows do. For now leave them as they
# ({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