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
Amer
erp5
Commits
43cd59fc
Commit
43cd59fc
authored
Jun 26, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool.py: correct doActionFor compatibility to avoid adding prefix multiple times.
parent
94cbc855
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5/Tool/WorkflowTool.py
product/ERP5/Tool/WorkflowTool.py
+2
-1
No files found.
product/ERP5/Tool/WorkflowTool.py
View file @
43cd59fc
...
@@ -169,8 +169,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -169,8 +169,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
for
wf
in
workflow_list
:
for
wf
in
workflow_list
:
if
wf
.
getPortalType
()
==
'Workflow'
:
if
wf
.
getPortalType
()
==
'Workflow'
:
# workflow compatibility
# workflow compatibility
action
=
'transition_'
+
action
action
=
'transition_'
+
action
_ref
else
:
action
=
action_ref
else
:
action
=
action_ref
LOG
(
" wf is '%s', action is '%s'"
%
(
wf
.
getId
(),
action
),
WARNING
,
" in WOrkfkowTool.py 174"
)
if
wf
.
isActionSupported
(
ob
,
action
,
**
kw
):
if
wf
.
isActionSupported
(
ob
,
action
,
**
kw
):
found
=
1
found
=
1
break
break
...
...
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