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
Alexander Emmerich
erp5
Commits
9c909ece
Commit
9c909ece
authored
Mar 19, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base.py: Add ERP5Workflow compatibility to getWorkflowStateItemList().
parent
cc3aabcd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+5
-0
No files found.
product/ERP5Type/Base.py
View file @
9c909ece
...
@@ -2925,6 +2925,7 @@ class Base( CopyContainer,
...
@@ -2925,6 +2925,7 @@ class Base( CopyContainer,
related_count
+=
1
related_count
+=
1
return
related_count
return
related_count
# Workflow Related Method
# Workflow Related Method
security
.
declarePublic
(
'getWorkflowStateItemList'
)
security
.
declarePublic
(
'getWorkflowStateItemList'
)
def
getWorkflowStateItemList
(
self
):
def
getWorkflowStateItemList
(
self
):
...
@@ -2934,6 +2935,10 @@ class Base( CopyContainer,
...
@@ -2934,6 +2935,10 @@ class Base( CopyContainer,
result
=
[]
result
=
[]
for
wf
in
self
.
portal_workflow
.
getWorkflowsFor
(
self
):
for
wf
in
self
.
portal_workflow
.
getWorkflowsFor
(
self
):
result
+=
[(
wf
.
id
,
wf
.
_getWorkflowStateOf
(
self
,
id_only
=
1
))]
result
+=
[(
wf
.
id
,
wf
.
_getWorkflowStateOf
(
self
,
id_only
=
1
))]
for
workflow_id
in
self
.
getTypeInfo
().
getTypeERP5WorkflowList
():
workflow
=
self
.
getPortalObject
().
getDefaultModule
(
'Workflow'
).
_getOb
(
workflow_id
)
sdef
=
self
.
_getDefaultAcquiredValue
(
workflow
.
getStateBaseCategory
())
result
+=
[(
workflow_id
,
sdef
.
getId
())]
return
result
return
result
security
.
declarePublic
(
'getWorkflowInfo'
)
security
.
declarePublic
(
'getWorkflowInfo'
)
...
...
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