Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
6455cd31
Commit
6455cd31
authored
Jun 22, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add layer property
parent
f2bb4a0e
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 @
6455cd31
...
...
@@ -250,12 +250,21 @@ class BusinessManager(Folder):
portal
=
self
.
getPortalObject
()
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
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
):
return
self
.
objectValues
()
...
...
@@ -318,6 +327,7 @@ class BusinessManager(Folder):
self
.
_setObject
(
obj
.
getId
(),
aq_base
(
obj
))
obj
.
isIndexable
=
ConstantGetter
(
'isIndexable'
,
value
=
False
)
self
.
setProperty
(
'template_path_list'
,
imported_manager
.
getProperty
(
'template_path_list'
))
self
.
setProperty
(
'layer'
,
imported_manager
.
getProperty
(
'layer'
))
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