Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
c4a4ee2a
Commit
c4a4ee2a
authored
Aug 19, 2016
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
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):
...
@@ -2782,8 +2782,11 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
force
=
kw
.
get
(
'force'
)
force
=
kw
.
get
(
'force'
)
installed_bt
=
kw
.
get
(
'installed_bt'
)
installed_bt
=
kw
.
get
(
'installed_bt'
)
if
installed_bt
is
not
None
:
if
installed_bt
is
not
None
:
old_objects
=
getattr
(
installed_bt
,
item
=
getattr
(
installed_bt
,
self
.
business_template_class_property
,
None
)
self
.
business_template_class_property
).
_objects
if
item
is
not
None
:
old_objects
=
item
.
_objects
else
:
old_objects
=
{}
else
:
else
:
old_objects
=
{}
old_objects
=
{}
for
key
in
set
(
self
.
_objects
.
keys
()).
union
(
old_objects
.
keys
()):
for
key
in
set
(
self
.
_objects
.
keys
()).
union
(
old_objects
.
keys
()):
...
...
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