Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
c649ed0d
Commit
c649ed0d
authored
Apr 27, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Plain Diff
erp5_configurator: check and create with correct portal type value
See merge request
nexedi/erp5!1403
parents
9612e94d
074c55ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_configurator/ExtensionTemplateItem/portal_components/extension.erp5.migrateWorkflowModuleToPortalWorkflow.py
...s/extension.erp5.migrateWorkflowModuleToPortalWorkflow.py
+2
-2
No files found.
bt5/erp5_configurator/ExtensionTemplateItem/portal_components/extension.erp5.migrateWorkflowModuleToPortalWorkflow.py
View file @
c649ed0d
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment