diff --git a/product/ERP5/tests/testImmobilisation.py b/product/ERP5/tests/testImmobilisation.py index 53933d120fd875da29dc091ccd672de2656169e6..2a1ce2f5096cc983f4503e0e20819c2cf16dfccb 100644 --- a/product/ERP5/tests/testImmobilisation.py +++ b/product/ERP5/tests/testImmobilisation.py @@ -262,6 +262,9 @@ class TestImmobilisationMixin(TestOrderMixin, ERP5TypeTestCase): self.logout() self.login('manager') + get_transaction().commit() + self.tic() + simulation_id_list = [r for r in self.getPortal().portal_simulation.objectIds()] self.getPortal().portal_simulation.manage_delObjects(simulation_id_list)