diff --git a/product/ERP5/tests/testInvoice.py b/product/ERP5/tests/testInvoice.py
index 1ecab14ca8922523434e47879eacd5d16905e894..9872c42e2116e75fa895b88d80f6facb5a9fa367 100644
--- a/product/ERP5/tests/testInvoice.py
+++ b/product/ERP5/tests/testInvoice.py
@@ -3456,7 +3456,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
           invoice_line.getDeliveryRelatedValue(portal_type='Simulation Movement'
               ).getQuantity())
 
-    if self.portal._getOb('portal_solvers', None) is not None:
+    if invoice_line.getDeliveryRelatedValue().getParentValue().getSpecialiseId() == \
+        'new_invoice_simulation_rule':
       # With new simulation solvers, changes on simulation movements will
       # not backtrack.
       pass