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
88850816
Commit
88850816
authored
Oct 16, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Folder_getWorkflowActionDocumentList.py: compatibility modification.
parent
8a9a9a44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py
...P5Form/Extensions/Folder_getWorkflowActionDocumentList.py
+3
-3
No files found.
product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py
View file @
88850816
...
@@ -89,7 +89,7 @@ def getDocumentGroupByWorkflowStateList(self, form_id='', **kw):
...
@@ -89,7 +89,7 @@ def getDocumentGroupByWorkflowStateList(self, form_id='', **kw):
for
workflow
in
wf_tool
.
getWorkflowsFor
(
doc
):
for
workflow
in
wf_tool
.
getWorkflowsFor
(
doc
):
if
workflow
.
getId
()
in
skipped_workflow_id_list
:
if
workflow
.
getId
()
in
skipped_workflow_id_list
:
continue
continue
state_var
=
workflow
.
variables
.
getStateVar
()
state_var
=
workflow
.
getStateVariable
()
translated_workflow_state_title
=
doc
.
getProperty
(
translated_workflow_state_title
=
doc
.
getProperty
(
'translated_%s_title'
%
state_var
)
'translated_%s_title'
%
state_var
)
if
state_var
==
workflow_state
:
if
state_var
==
workflow_state
:
...
@@ -121,7 +121,7 @@ def getDocumentGroupByWorkflowStateList(self, form_id='', **kw):
...
@@ -121,7 +121,7 @@ def getDocumentGroupByWorkflowStateList(self, form_id='', **kw):
for
workflow
in
wf_tool
.
getWorkflowsFor
(
document
):
for
workflow
in
wf_tool
.
getWorkflowsFor
(
document
):
if
workflow
.
getId
()
in
skipped_workflow_id_list
:
if
workflow
.
getId
()
in
skipped_workflow_id_list
:
continue
continue
if
state_var
==
workflow
.
variables
.
getStateVar
():
if
state_var
==
workflow
.
getStateVariable
():
key
=
(
document
.
getPortalTypeName
(),
workflow
.
getId
(),
key
=
(
document
.
getPortalTypeName
(),
workflow
.
getId
(),
document
.
getProperty
(
state_var
))
document
.
getProperty
(
state_var
))
document_count
=
workflow_state_dict
.
get
(
key
,
(
None
,
0
))[
1
]
document_count
=
workflow_state_dict
.
get
(
key
,
(
None
,
0
))[
1
]
...
@@ -131,7 +131,7 @@ def getDocumentGroupByWorkflowStateList(self, form_id='', **kw):
...
@@ -131,7 +131,7 @@ def getDocumentGroupByWorkflowStateList(self, form_id='', **kw):
for
(
ptype
,
workflow_id
,
state
),
(
doc
,
document_count
)
in
\
for
(
ptype
,
workflow_id
,
state
),
(
doc
,
document_count
)
in
\
workflow_state_dict
.
iteritems
():
workflow_state_dict
.
iteritems
():
workflow
=
wf_tool
.
getWorkflowById
(
workflow_id
)
workflow
=
wf_tool
.
getWorkflowById
(
workflow_id
)
state_var
=
workflow
.
variables
.
getStateVar
()
state_var
=
workflow
.
getStateVariable
()
translated_workflow_state_title
=
doc
.
getProperty
(
translated_workflow_state_title
=
doc
.
getProperty
(
'translated_%s_title'
%
state_var
)
'translated_%s_title'
%
state_var
)
workflow_id
=
workflow
.
getId
()
workflow_id
=
workflow
.
getId
()
...
...
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