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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
074c55ba
Commit
074c55ba
authored
Apr 26, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_configurator: check and create with correct portal type value
parent
9612e94d
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 @
074c55ba
...
...
@@ -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.
...
...
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