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
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
bf444dcc
Commit
bf444dcc
authored
Feb 11, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BusinessTemplate: py3
parent
f6f59520
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+3
-3
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
bf444dcc
...
...
@@ -1532,7 +1532,7 @@ class ObjectTemplateItem(BaseTemplateItem):
# in a separate file (such as the one from
# testTemplateTool.TestTemplateTool.test_updateBusinessTemplateFromUrl_keep_list)
# data might be loaded as a string, fix this here.
if
not
isinstance
(
obj
.
data
,
(
bytes
,
Pdata
)):
if
obj
.
data
is
not
None
and
not
isinstance
(
obj
.
data
,
(
bytes
,
Pdata
)):
obj
.
data
=
obj
.
data
.
encode
()
# XXX Calling obj._setData() would call Interaction Workflow such
# as document_conversion_interaction_workflow which would update
...
...
@@ -6114,8 +6114,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
'_test_item'
,
'_message_translation_item'
,]
if
item_name
in
item_list_1
:
f1
=
Bytes
IO
()
# for XML export of New Object
f2
=
Bytes
IO
()
# For XML export of Installed Object
f1
=
String
IO
()
# for XML export of New Object
f2
=
String
IO
()
# For XML export of Installed Object
# Remove unneeded properties
new_object
=
new_item
.
removeProperties
(
new_object
,
1
)
installed_object
=
installed_item
.
removeProperties
(
installed_object
,
1
)
...
...
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