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
Labels
Merge Requests
139
Merge Requests
139
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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
Pipeline
#15148
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show 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