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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
c4a4ee2a
Commit
c4a4ee2a
authored
8 years ago
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BusinessTemplate: Installed business template may be empty. Don't assume that it is not empty.
parent
38cb674a
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+5
-2
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
c4a4ee2a
...
...
@@ -2782,8 +2782,11 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
force
=
kw
.
get
(
'force'
)
installed_bt
=
kw
.
get
(
'installed_bt'
)
if
installed_bt
is
not
None
:
old_objects
=
getattr
(
installed_bt
,
self
.
business_template_class_property
).
_objects
item
=
getattr
(
installed_bt
,
self
.
business_template_class_property
,
None
)
if
item
is
not
None
:
old_objects
=
item
.
_objects
else
:
old_objects
=
{}
else
:
old_objects
=
{}
for
key
in
set
(
self
.
_objects
.
keys
()).
union
(
old_objects
.
keys
()):
...
...
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