Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
e7cc18a1
Commit
e7cc18a1
authored
Jun 22, 2017
by
Ayush Tiwari
Committed by
Ayush Tiwari
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add layer property
parent
1639e767
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+12
-2
No files found.
product/ERP5/Document/BusinessManager.py
View file @
e7cc18a1
...
@@ -250,12 +250,21 @@ class BusinessManager(Folder):
...
@@ -250,12 +250,21 @@ class BusinessManager(Folder):
portal
=
self
.
getPortalObject
()
portal
=
self
.
getPortalObject
()
pass
pass
def
edit
(
self
,
template_path_list
=
[],
**
kw
):
def
_setTitle
(
self
,
value
):
"""
Override required due to bootstrap
"""
self
.
title
=
value
def
edit
(
self
,
template_path_list
=
[],
layer
=
1
,
**
kw
):
"""
"""
Explicilty edit the class instance
Explicilty edit the class instance
XXX: No need of this class ? as we already have _edit from ERP5Type.Folder
XXX: No need of this class ? as we already have _edit from ERP5Type.Folder
"""
"""
super
(
BusinessManager
,
self
).
edit
(
template_path_list
=
template_path_list
,
**
kw
)
super
(
BusinessManager
,
self
).
edit
(
template_path_list
=
template_path_list
,
layer
=
layer
,
**
kw
)
def
getPathItemList
(
self
):
def
getPathItemList
(
self
):
return
self
.
objectValues
()
return
self
.
objectValues
()
...
@@ -318,6 +327,7 @@ class BusinessManager(Folder):
...
@@ -318,6 +327,7 @@ class BusinessManager(Folder):
self
.
_setObject
(
obj
.
getId
(),
aq_base
(
obj
))
self
.
_setObject
(
obj
.
getId
(),
aq_base
(
obj
))
obj
.
isIndexable
=
ConstantGetter
(
'isIndexable'
,
value
=
False
)
obj
.
isIndexable
=
ConstantGetter
(
'isIndexable'
,
value
=
False
)
self
.
setProperty
(
'template_path_list'
,
imported_manager
.
getProperty
(
'template_path_list'
))
self
.
setProperty
(
'template_path_list'
,
imported_manager
.
getProperty
(
'template_path_list'
))
self
.
setProperty
(
'layer'
,
imported_manager
.
getProperty
(
'layer'
))
def
__add__
(
self
,
other
):
def
__add__
(
self
,
other
):
"""
"""
...
...
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