From 4bf3eeaf52c8fe34dcf37f53b0cff0875a747c85 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Fri, 24 Feb 2012 21:53:15 +0900 Subject: [PATCH] Do not commit the transaction after deleting text_content upon Business Template export. Instead, use savepoint which avoids triggering interaction workflows. --- product/ERP5/Document/BusinessTemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index b6afa8c229..19b22f40c3 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -3835,7 +3835,7 @@ class DocumentTemplateItem(FilesystemToZodbTemplateItem): bta.addObject(f, key, path=path, ext='.py') del obj.text_content - transaction.commit() + transaction.savepoint(optimistic=True) # export object in xml f = StringIO() -- 2.30.9