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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
dcade766
Commit
dcade766
authored
Aug 09, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BusinessTemplate: XXX workaround one issue with web section handling
XXX Not tested...
parent
8f0ddbd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+2
-2
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
dcade766
...
...
@@ -1495,7 +1495,7 @@ class ObjectTemplateItem(BaseTemplateItem):
subobject_data
.
seek
(
0
)
subobject
=
connection
.
importFile
(
subobject_data
)
obj
.
_setObject
(
subobject_id
,
subobject
)
except
AttributeError
:
except
(
AttributeError
,
KeyError
)
:
# XXX this may happen when an object which can contain
# sub-objects (e.g. ERP5 Form) has been replaced with
# an object which cannot (e.g. External Method).
...
...
@@ -1690,7 +1690,7 @@ class PathTemplateItem(ObjectTemplateItem):
for
path
in
sorted
(
object_keys
,
reverse
=
True
):
try
:
path_list
=
self
.
_resolvePath
(
p
,
[],
path
.
split
(
'/'
))
except
AttributeError
:
except
(
AttributeError
,
KeyError
)
:
# path seems to not exist anymore
continue
path_list
.
sort
()
...
...
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