From 3d454916a547f314c5538dcb6e260f18a27825f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Thu, 3 Feb 2011 15:19:42 +0000 Subject: [PATCH] we do not want the same tag multiple times in the xml generated git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42994 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/XMLExportImport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/XMLExportImport.py b/product/ERP5Type/XMLExportImport.py index 8c4068eefc..2194c99b63 100644 --- a/product/ERP5Type/XMLExportImport.py +++ b/product/ERP5Type/XMLExportImport.py @@ -87,7 +87,7 @@ def Base_asXML(object, root=None): portal_type=self.getPortalType())) # We have to find every property - for prop_id in self.propertyIds(): + for prop_id in set(self.propertyIds()): # In most case, we should not synchronize acquired properties if prop_id not in ('uid', 'workflow_history', 'id', 'portal_type',): value = self.getProperty(prop_id) -- 2.30.9