From 28585d6e0a8d57d97e91fa213647dd03c52990c3 Mon Sep 17 00:00:00 2001
From: Fabien Devaux <fab@gnux.info>
Date: Fri, 14 Apr 2006 11:01:41 +0000
Subject: [PATCH] Backward compatibility bug correction

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6637 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/OOoTemplate.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/product/ERP5OOo/OOoTemplate.py b/product/ERP5OOo/OOoTemplate.py
index dcbb402931..3103459ed6 100644
--- a/product/ERP5OOo/OOoTemplate.py
+++ b/product/ERP5OOo/OOoTemplate.py
@@ -425,6 +425,12 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0">
       # Replace content.xml in master openoffice template
       ooo_builder.replace('content.xml', doc_xml)
 
+      # Old templates correction
+      try:
+          self.OLE_documents_zipstring
+      except AttributeError:
+          self.OLE_documents_zipstring = None
+
       # If the file has embedded OLE documents, restore it
       if self.OLE_documents_zipstring:
           additional_builder = OOoBuilder( self.OLE_documents_zipstring )
-- 
2.30.9