Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
9c4f4b74
Commit
9c4f4b74
authored
Sep 14, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool.py: clean up.
parent
3c5837e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
product/ERP5/Tool/WorkflowTool.py
product/ERP5/Tool/WorkflowTool.py
+1
-4
No files found.
product/ERP5/Tool/WorkflowTool.py
View file @
9c4f4b74
...
...
@@ -249,8 +249,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
return
temp_workflow_list
def
dc_workflow_asERP5Object
(
self
,
container
,
dc_workflow
,
temp
):
# create a temporary ERP5 Workflow
# instead of adding prefix toavoid id conflict, prefer to put dcworkflow in portal_trash;
# convert DC Workflow to New Workflow
workflow_type_id
=
dc_workflow
.
__class__
.
__name__
if
workflow_type_id
==
'DCWorkflowDefinition'
:
if
temp
==
0
:
...
...
@@ -435,8 +434,6 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
else
:
interaction
.
setExpression
(
''
)
interaction
.
setPortalTypeFilter
(
tdef
.
portal_type_filter
)
interaction
.
setPortalTypeGroupFilter
(
tdef
.
portal_type_group_filter
)
# following 2 if are due to workflow migration compatibilities
if
interaction
.
portal_type_filter
==
():
interaction
.
portal_type_filter
=
None
if
interaction
.
portal_type_group_filter
==
():
...
...
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