diff --git a/product/ERP5/tests/testInvoice.py b/product/ERP5/tests/testInvoice.py index 87f21ac85b95dd31597a834b2d589bb7567f28ae..497f0559e92f2288a3ca72fbb51a54c4c827b0e3 100644 --- a/product/ERP5/tests/testInvoice.py +++ b/product/ERP5/tests/testInvoice.py @@ -2110,13 +2110,14 @@ class TestSaleInvoiceMixin(TestInvoiceMixin, """Rebuilds with sale_invoice_builder and checks nothing more is created. """ accounting_module = self.getAccountingModule() - sale_invoice_transaction_count = len(accounting_module.objectValues()) + portal_type_list = ('Sale Invoice Transaction', 'Purchase Invoice Transaction') + sale_invoice_transaction_count = len(accounting_module.objectValues( + portal_type=portal_type_list)) for builder in self.getPortal().portal_deliveries.objectValues(): builder.build() self.assertEquals(sale_invoice_transaction_count, len(accounting_module.objectValues( - portal_type=('Sale Invoice Transaction', - 'Purchase Invoice Transaction')))) + portal_type=portal_type_list))) def stepModifyInvoicesDate(self, sequence=None, sequence_list=None, **kw):