diff --git a/product/ERP5/tests/testInvoice.py b/product/ERP5/tests/testInvoice.py index 600f3dbf390ded9356d74cc3e0f520c1c62c6350..16c611afb8488c9acf3eaf408b220aa416ea79b6 100644 --- a/product/ERP5/tests/testInvoice.py +++ b/product/ERP5/tests/testInvoice.py @@ -269,7 +269,10 @@ class TestInvoiceMixin(TestPackingListMixin, simulation_movement_list = invoicing_rule.objectValues() self.assertNotEquals(len(simulation_movement_list), 0) for simulation_movement in simulation_movement_list : - invoice_transaction_rule_list.extend(simulation_movement.objectValues()) + invoice_transaction_rule_list.extend([applied_rule for applied_rule + in simulation_movement.objectValues() if applied_rule \ + .getSpecialiseValue().getPortalType() + == 'Invoice Transaction Rule']) resource_list = sequence.get('resource_list') self.assertEquals(simulation_movement.getPortalType(), 'Simulation Movement')