From caa6bce2bead3b3d2aa77744bb443a9e074d6d74 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Mon, 7 May 2007 22:58:53 +0000
Subject: [PATCH] Convert to base format before trying to find destination
 formats.

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

diff --git a/product/ERP5OOo/Document/OOoDocument.py b/product/ERP5OOo/Document/OOoDocument.py
index c8792ca108..b5e67f500e 100644
--- a/product/ERP5OOo/Document/OOoDocument.py
+++ b/product/ERP5OOo/Document/OOoDocument.py
@@ -179,6 +179,9 @@ class OOoDocument(File, ConversionCacheMixin):
       NOTE: it is the responsability of the conversion server
       to provide an extensive list of conversion formats.
     """
+    if not self.hasBaseData():
+      self.convertToBaseFormat()
+
     def cached_getTargetFormatItemList(content_type):
       server_proxy = self._mkProxy()
       try:
-- 
2.30.9