Commit 4bf3eeaf authored by Arnaud Fontaine's avatar Arnaud Fontaine

Do not commit the transaction after deleting text_content upon Business Template export.

Instead, use savepoint which avoids triggering interaction workflows.
parent c5f8edc8
...@@ -3835,7 +3835,7 @@ class DocumentTemplateItem(FilesystemToZodbTemplateItem): ...@@ -3835,7 +3835,7 @@ class DocumentTemplateItem(FilesystemToZodbTemplateItem):
bta.addObject(f, key, path=path, ext='.py') bta.addObject(f, key, path=path, ext='.py')
del obj.text_content del obj.text_content
transaction.commit() transaction.savepoint(optimistic=True)
# export object in xml # export object in xml
f = StringIO() f = StringIO()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment