From 4c2d2fae0e273a6ca046584021b5e56e50951af9 Mon Sep 17 00:00:00 2001
From: Julien Muchembled <jm@nexedi.com>
Date: Thu, 16 Sep 2010 19:54:33 +0000
Subject: [PATCH] Revert [38428]

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@38429 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testInvoice.py           | 4 ----
 product/ERP5Type/patches/XMLExportImport.py | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/product/ERP5/tests/testInvoice.py b/product/ERP5/tests/testInvoice.py
index 6a285a3bd9..fd8082adbd 100644
--- a/product/ERP5/tests/testInvoice.py
+++ b/product/ERP5/tests/testInvoice.py
@@ -123,10 +123,6 @@ class TestInvoiceMixin(TestPackingListMixin):
 
   def beforeTearDown(self):
     transaction.abort()
-    processing_node_list = [m.processing_node
-      for m in self.portal.portal_activities.getMessageList()]
-    if processing_node_list and min(processing_node_list) >= -1:
-      self.portal.pdb()
     super(TestInvoiceMixin, self).beforeTearDown()
     for folder in (self.portal.accounting_module,
                    self.portal.organisation_module,
diff --git a/product/ERP5Type/patches/XMLExportImport.py b/product/ERP5Type/patches/XMLExportImport.py
index 8716309210..c4ad5820ec 100644
--- a/product/ERP5Type/patches/XMLExportImport.py
+++ b/product/ERP5Type/patches/XMLExportImport.py
@@ -117,7 +117,7 @@ def reorderPickle(jar, p):
     pickler.persistent_id=persistent_id
 
     klass = unpickler.load()
-    #klass = maybeSimplifyClass(klass)
+    klass = maybeSimplifyClass(klass)
     pickler.dump(klass)
     obj = unpickler.load()
     pickler.dump(obj)
-- 
2.30.9