diff --git a/product/ERP5/tests/testAdvancedInvoicing.py b/product/ERP5/tests/testAdvancedInvoicing.py
index 1501305d71bc21d74415c0f4977660a0c8305787..ff29fe1dc242a9b0fb78d5309ceb796f9d794368 100644
--- a/product/ERP5/tests/testAdvancedInvoicing.py
+++ b/product/ERP5/tests/testAdvancedInvoicing.py
@@ -394,7 +394,7 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
   def afterSetUp(self):
     super(TestAdvancedSaleInvoice, self).afterSetUp()
     # This is quite ugly, we should use late import/export functions of generators
-    self.portal.cmf_activity_sql_connection.manage_test(
+    self.portal.erp5_sql_transactionless_connection.manage_test(
      "delete from portal_ids where \
        id_group='Accounting_Transaction_Module-Sale_Invoice_Transaction'")
     transaction.commit()