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
051d586b
Commit
051d586b
authored
Jun 11, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type.py: remove ERP5 prefix.
parent
186158f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
product/ERP5Type/ERP5Type.py
product/ERP5Type/ERP5Type.py
+9
-9
No files found.
product/ERP5Type/ERP5Type.py
View file @
051d586b
...
...
@@ -253,7 +253,7 @@ class ERP5TypeInformation(XMLObject,
acquire_local_roles
=
False
property_sheet_list
=
()
base_category_list
=
()
erp5
workflow_list
=
()
workflow_list
=
()
init_script
=
''
product
=
'ERP5Type'
hidden_content_type_list
=
()
...
...
@@ -461,18 +461,18 @@ class ERP5TypeInformation(XMLObject,
return
list
(
self
.
base_category_list
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getType
ERP5
WorkflowList'
)
def
getType
ERP5
WorkflowList
(
self
):
'getTypeWorkflowList'
)
def
getTypeWorkflowList
(
self
):
"""Getter for 'type_workflow' property"""
return
list
(
self
.
erp5
workflow_list
)
return
list
(
self
.
workflow_list
)
def
delType
ERP5
WorkflowList
(
self
,
wf_id
):
def
delTypeWorkflowList
(
self
,
wf_id
):
""" allow to modify workflow assignment from script. """
self
.
erp5workflow_list
=
tuple
(
wf
for
wf
in
self
.
erp5
workflow_list
if
wf
!=
wf_id
)
self
.
workflow_list
=
tuple
(
wf
for
wf
in
self
.
workflow_list
if
wf
!=
wf_id
)
def
addType
ERP5
WorkflowList
(
self
,
wf_id
):
def
addTypeWorkflowList
(
self
,
wf_id
):
""" allow to modify workflow assignment from script. """
self
.
erp5workflow_list
=
self
.
erp5
workflow_list
+
(
wf_id
,
)
self
.
workflow_list
=
self
.
workflow_list
+
(
wf_id
,
)
def
getTypePropertySheetValueList
(
self
):
type_property_sheet_list
=
self
.
getTypePropertySheetList
()
...
...
@@ -610,7 +610,7 @@ class ERP5TypeInformation(XMLObject,
self
.
getTypeInitScriptId
()]
search_source_list
+=
self
.
getTypePropertySheetList
()
search_source_list
+=
self
.
getTypeBaseCategoryList
()
search_source_list
+=
self
.
getType
ERP5
WorkflowList
()
search_source_list
+=
self
.
getTypeWorkflowList
()
return
' '
.
join
(
filter
(
None
,
search_source_list
))
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
...
...
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