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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Papa Tamsir Kane
erp5
Commits
c7650f56
Commit
c7650f56
authored
May 28, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowTool.py: add bootstrap codes.
parent
732bf815
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
product/ERP5Type/patches/WorkflowTool.py
product/ERP5Type/patches/WorkflowTool.py
+13
-0
No files found.
product/ERP5Type/patches/WorkflowTool.py
View file @
c7650f56
...
...
@@ -399,6 +399,19 @@ def generateActionList(worklist_metadata, worklist_result, portal_url):
'category'
:
metadata
[
'action_box_category'
]})
return
action_list
def
WorkflowTool_isBootstrapRequired
(
self
):
# migrate after ERP5Tool installed (portal_rules is the first item of setupLastTools
# in ERP5Site.py);
if
self
.
getPortalObject
().
_getOb
(
'portal_rules'
,
None
)
is
not
None
:
return
True
return
False
def
WorkflowTool_bootstrap
(
self
):
self
.
getPortalObject
().
migrateToPortalWorkflowClass
()
WorkflowTool
.
_isBootstrapRequired
=
WorkflowTool_isBootstrapRequired
WorkflowTool
.
_bootstrap
=
WorkflowTool_bootstrap
def
WorkflowTool_listActions
(
self
,
info
=
None
,
object
=
None
,
src__
=
False
):
"""
Returns a list of actions to be displayed to the user.
...
...
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