diff --git a/product/ERP5OOo/Document/OOoDocument.py b/product/ERP5OOo/Document/OOoDocument.py index 49e34b66659e1a81559bdceec31df4bf31c1043c..fa7fa3f2b6fc6ee7e6896a8cdcaac449eb9f0c39 100644 --- a/product/ERP5OOo/Document/OOoDocument.py +++ b/product/ERP5OOo/Document/OOoDocument.py @@ -163,6 +163,7 @@ class OOoDocument(OOoDocumentExtensibleTraversableMixin, BaseConvertableFileMixi , PropertySheet.DublinCore , PropertySheet.Version , PropertySheet.Document + , PropertySheet.Data , PropertySheet.ExternalDocument , PropertySheet.Url , PropertySheet.Periodicity diff --git a/product/ERP5OOo/OOoTemplate.py b/product/ERP5OOo/OOoTemplate.py index 8223bfce24c831eb751e478fb14c5d1164085467..ed347ffd1fc6cc72efbc8975109151b6f3b02018 100644 --- a/product/ERP5OOo/OOoTemplate.py +++ b/product/ERP5OOo/OOoTemplate.py @@ -585,7 +585,7 @@ class OOoTemplate(ZopePageTemplate): from Products.ERP5Type.Document import newTempOOoDocument tmp_ooo = newTempOOoDocument(self, self.title_or_id()) tmp_ooo.edit(data=ooo, - source_reference=filename, + filename=filename, content_type=self.content_type,) format = opts.get('format', request.get('format', None))