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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
feb28ca5
Commit
feb28ca5
authored
Mar 28, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BusinessTemplate: XXX workaround one bug
Not reproduced...
parent
58f69922
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+1
-1
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
feb28ca5
...
@@ -1494,7 +1494,7 @@ class ObjectTemplateItem(BaseTemplateItem):
...
@@ -1494,7 +1494,7 @@ class ObjectTemplateItem(BaseTemplateItem):
subobject_data
.
seek
(
0
)
subobject_data
.
seek
(
0
)
subobject
=
connection
.
importFile
(
subobject_data
)
subobject
=
connection
.
importFile
(
subobject_data
)
obj
.
_setObject
(
subobject_id
,
subobject
)
obj
.
_setObject
(
subobject_id
,
subobject
)
except
AttributeError
:
except
(
AttributeError
,
KeyError
)
:
# XXX this may happen when an object which can contain
# XXX this may happen when an object which can contain
# sub-objects (e.g. ERP5 Form) has been replaced with
# sub-objects (e.g. ERP5 Form) has been replaced with
# an object which cannot (e.g. External Method).
# an object which cannot (e.g. External Method).
...
...
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