diff --git a/product/ERP5/tests/testInvoice.py b/product/ERP5/tests/testInvoice.py index 8879a81a09229276d195cfec402c207f1413520a..a299ebbc2bd61aca07ae345b0ba5602a008c6abb 100644 --- a/product/ERP5/tests/testInvoice.py +++ b/product/ERP5/tests/testInvoice.py @@ -135,7 +135,9 @@ class TestInvoiceMixin(TestPackingListMixin, self.portal.sale_packing_list_module, self.portal.purchase_packing_list_module, self.portal.portal_simulation,): - folder.manage_delObjects(list(folder.objectIds())) + + folder.manage_delObjects([x for x in folder.objectIds() if x not in ('organisation_1','organisation_2')]) + transaction.commit() self.tic()