diff --git a/product/ERP5OOo/Document/OOoDocument.py b/product/ERP5OOo/Document/OOoDocument.py index c17eee8b2168a0f8f587dc7bb4e2641d43d63fdd..46f88eead3765904ca5e1b1a4bd62d2b210430d6 100644 --- a/product/ERP5OOo/Document/OOoDocument.py +++ b/product/ERP5OOo/Document/OOoDocument.py @@ -488,8 +488,10 @@ class OOoDocument(File, ConversionCacheMixin): based on the values provided by the user. This is implemented through the invocation of the conversion server. """ - # We must use original data which is uploaded by user from editform. - data = self.getData() + data = self.getBaseData() + if data in ('', None): + return + server_proxy = self._mkProxy() response_code, response_dict, response_message = \ server_proxy.run_setmetadata(self.getId(), @@ -502,4 +504,3 @@ class OOoDocument(File, ConversionCacheMixin): # Explicitly raise the exception! raise ConversionError("OOoDocument: error getting document metadata %s:%s" % (response_code, response_message)) -