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
37ef0748
Commit
37ef0748
authored
7 years ago
by
Ayush Tiwari
Committed by
Ayush Tiwari
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Accept empty path_list for Business Manager objects
parent
2b265d1d
No related merge requests found
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 @
37ef0748
...
...
@@ -124,8 +124,7 @@ class BusinessManager(XMLObject):
self
.
_setTemplatePathList
(
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
):
return
self
.
template_path_list
...
...
@@ -158,7 +157,10 @@ class BusinessManager(XMLObject):
if
path_item_list
:
path_item_list
=
[
l
.
split
(
' | '
)
for
l
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
):
"""Creates new values for business item from the values from
...
...
This diff is collapsed.
Click to expand it.
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