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
Mukul
erp5
Commits
8537741d
Commit
8537741d
authored
Feb 27, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Accept empty path_list for Business Manager objects
parent
e7260c75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+5
-3
No files found.
product/ERP5/Document/BusinessManager.py
View file @
8537741d
...
@@ -124,8 +124,7 @@ class BusinessManager(XMLObject):
...
@@ -124,8 +124,7 @@ class BusinessManager(XMLObject):
self
.
_setTemplatePathList
(
path_item_list
)
self
.
_setTemplatePathList
(
path_item_list
)
def
_setTemplatePathList
(
self
,
path_item_list
):
def
_setTemplatePathList
(
self
,
path_item_list
):
if
path_item_list
:
self
.
template_path_list
=
path_item_list
self
.
template_path_list
=
path_item_list
def
getTemplatePathList
(
self
):
def
getTemplatePathList
(
self
):
return
self
.
template_path_list
return
self
.
template_path_list
...
@@ -158,7 +157,10 @@ class BusinessManager(XMLObject):
...
@@ -158,7 +157,10 @@ class BusinessManager(XMLObject):
if
path_item_list
:
if
path_item_list
:
path_item_list
=
[
l
.
split
(
' | '
)
for
l
in
path_item_list
]
path_item_list
=
[
l
.
split
(
' | '
)
for
l
in
path_item_list
]
for
path_item
in
path_item_list
:
for
path_item
in
path_item_list
:
self
.
_path_item_list
.
append
(
BusinessItem
(
path_item
[
0
],
path_item
[
1
],
path_item
[
2
]))
try
:
self
.
_path_item_list
.
append
(
BusinessItem
(
path_item
[
0
],
path_item
[
1
],
path_item
[
2
]))
except
IndexError
:
pass
def
build
(
self
,
no_action
=
False
,
**
kw
):
def
build
(
self
,
no_action
=
False
,
**
kw
):
"""Creates new values for business item from the values from
"""Creates new values for business item from the values from
...
...
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