From 4cae47c35cb4c4478fe2dbf880a825cfb7c5f0d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Tue, 24 Jan 2006 17:25:42 +0000
Subject: [PATCH] remove properties of object at diff

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

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 2f6afc700f..94b39bb753 100755
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -4079,6 +4079,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
       if item_name in item_list_1:
         f1 = StringIO()
         f2 = StringIO()
+        # remove uneeded property
+        new_object.removeProperties()
+        installed_object.removeProperties()
         OFS.XMLExportImport.exportXML(new_object._p_jar, new_object._p_oid, f1)
         OFS.XMLExportImport.exportXML(installed_object._p_jar, installed_object._p_oid, f2)
         new_obj_xml = f1.getvalue()
-- 
2.30.9