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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
b6ababa1
Commit
b6ababa1
authored
Mar 25, 2021
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQUASH configurator
parent
f1583dba
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
12 deletions
+8
-12
bt5/erp5_configurator/ExtensionTemplateItem/portal_components/extension.erp5.migrateWorkflowModuleToPortalWorkflow.py
...s/extension.erp5.migrateWorkflowModuleToPortalWorkflow.py
+2
-6
bt5/erp5_configurator_ebusiness_lotse/WorkflowTemplateItem/portal_workflow/ebusiness_lotse_configuration_workflow.xml
...ortal_workflow/ebusiness_lotse_configuration_workflow.xml
+1
-1
bt5/erp5_configurator_maxma_demo/WorkflowTemplateItem/portal_workflow/maxma_demo_configuration_workflow.xml
...tem/portal_workflow/maxma_demo_configuration_workflow.xml
+1
-1
bt5/erp5_configurator_run_my_doc/WorkflowTemplateItem/portal_workflow/run_my_doc_configuration_workflow.xml
...tem/portal_workflow/run_my_doc_configuration_workflow.xml
+1
-1
bt5/erp5_configurator_standard/WorkflowTemplateItem/portal_workflow/erp5_consulting_workflow.xml
...TemplateItem/portal_workflow/erp5_consulting_workflow.xml
+1
-1
bt5/erp5_configurator_standard/WorkflowTemplateItem/portal_workflow/erp5_standard_workflow.xml
...owTemplateItem/portal_workflow/erp5_standard_workflow.xml
+1
-1
bt5/erp5_configurator_standard/WorkflowTemplateItem/portal_workflow/officejs_sdk_workflow.xml
...lowTemplateItem/portal_workflow/officejs_sdk_workflow.xml
+1
-1
No files found.
bt5/erp5_configurator/ExtensionTemplateItem/portal_components/extension.erp5.migrateWorkflowModuleToPortalWorkflow.py
View file @
b6ababa1
...
@@ -13,15 +13,14 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
...
@@ -13,15 +13,14 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
for
o
in
category_value_list
]
for
o
in
category_value_list
]
workflow
=
portal_workflow
.
newContent
(
workflow
=
portal_workflow
.
newContent
(
id
=
workflow_id
,
portal_type
=
'Workflow'
,
portal_type
=
'Workflow'
,
reference
=
configurator_workflow
.
getId
(),
reference
=
configurator_workflow
.
getId
(),
comment
=
configurator_workflow
.
getComment
(),
comment
=
configurator_workflow
.
getComment
(),
description
=
configurator_workflow
.
getDescription
(),
description
=
configurator_workflow
.
getDescription
(),
state_variable
=
configurator_workflow
.
getProperty
(
'state_variable_name'
),
source_list
=
getCategoryList
(
'state_'
,
configurator_workflow
.
getSourceValueList
()),
source_list
=
getCategoryList
(
'state_'
,
configurator_workflow
.
getSourceValueList
()),
# ConfiguratorWorkflow PropertySheet
# ConfiguratorWorkflow PropertySheet
configuration_after_script_id
=
configurator_workflow
.
getConfigurationAfterScriptId
(),
configuration_after_script_id
=
configurator_workflow
.
getConfigurationAfterScriptId
())
state_base_category
=
configurator_workflow
.
getStateBaseCategory
())
for
business_configuration
in
configurator_workflow
.
getRelatedValueList
(
for
business_configuration
in
configurator_workflow
.
getRelatedValueList
(
portal_type
=
'Business Configuration'
):
portal_type
=
'Business Configuration'
):
business_configuration
.
setResourceValue
(
workflow
)
business_configuration
.
setResourceValue
(
workflow
)
...
@@ -32,7 +31,6 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
...
@@ -32,7 +31,6 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
if
subobject
.
getPortalType
()
==
'State'
:
if
subobject
.
getPortalType
()
==
'State'
:
state
=
workflow
.
newContent
(
state
=
workflow
.
newContent
(
id
=
'state_'
+
reference
,
portal_type
=
'State'
,
portal_type
=
'State'
,
reference
=
reference
,
reference
=
reference
,
title
=
title
,
title
=
title
,
...
@@ -45,7 +43,6 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
...
@@ -45,7 +43,6 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
elif
subobject
.
getPortalType
()
==
'Transition'
:
elif
subobject
.
getPortalType
()
==
'Transition'
:
workflow
.
newContent
(
workflow
.
newContent
(
id
=
'transition_'
+
reference
,
portal_type
=
'Transition'
,
portal_type
=
'Transition'
,
reference
=
reference
,
reference
=
reference
,
title
=
title
,
title
=
title
,
...
@@ -70,7 +67,6 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
...
@@ -70,7 +67,6 @@ def migrateToERP5Workflow(portal_workflow, configurator_workflow):
continue
continue
workflow
.
newContent
(
workflow
.
newContent
(
id
=
'variable_'
+
reference
,
portal_type
=
'Workflow Variable'
,
portal_type
=
'Workflow Variable'
,
reference
=
reference
,
reference
=
reference
,
title
=
title
,
title
=
title
,
...
...
bt5/erp5_configurator_ebusiness_lotse/WorkflowTemplateItem/portal_workflow/ebusiness_lotse_configuration_workflow.xml
View file @
b6ababa1
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
state_variable
</string>
</key>
<key>
<string>
state_variable
</string>
</key>
<value>
<string>
simulation
_state
</string>
</value>
<value>
<string>
current
_state
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_configurator_maxma_demo/WorkflowTemplateItem/portal_workflow/maxma_demo_configuration_workflow.xml
View file @
b6ababa1
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
state_variable
</string>
</key>
<key>
<string>
state_variable
</string>
</key>
<value>
<string>
simulation
_state
</string>
</value>
<value>
<string>
current
_state
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_configurator_run_my_doc/WorkflowTemplateItem/portal_workflow/run_my_doc_configuration_workflow.xml
View file @
b6ababa1
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
state_variable
</string>
</key>
<key>
<string>
state_variable
</string>
</key>
<value>
<string>
simulation
_state
</string>
</value>
<value>
<string>
current
_state
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_configurator_standard/WorkflowTemplateItem/portal_workflow/erp5_consulting_workflow.xml
View file @
b6ababa1
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
state_variable
</string>
</key>
<key>
<string>
state_variable
</string>
</key>
<value>
<string>
simulation
_state
</string>
</value>
<value>
<string>
current
_state
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_configurator_standard/WorkflowTemplateItem/portal_workflow/erp5_standard_workflow.xml
View file @
b6ababa1
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
state_variable
</string>
</key>
<key>
<string>
state_variable
</string>
</key>
<value>
<string>
simulation
_state
</string>
</value>
<value>
<string>
current
_state
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_configurator_standard/WorkflowTemplateItem/portal_workflow/officejs_sdk_workflow.xml
View file @
b6ababa1
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
state_variable
</string>
</key>
<key>
<string>
state_variable
</string>
</key>
<value>
<string>
simulation
_state
</string>
</value>
<value>
<string>
current
_state
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
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