From bc501d262df9706c3043989a2f6085dff1f4b039 Mon Sep 17 00:00:00 2001 From: ?ngel ?lvarez Date: Sat, 13 Apr 2019 15:23:08 +0200 Subject: [PATCH] merge account type and kind --- tests/test_account_invoice_facturae.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_account_invoice_facturae.py b/tests/test_account_invoice_facturae.py index 79a7721..2672978 100644 --- a/tests/test_account_invoice_facturae.py +++ b/tests/test_account_invoice_facturae.py @@ -104,8 +104,8 @@ class TestAccountInvoiceFacturaeCase(ModuleTestCase): 'company': company.id, 'facturae_type': '01', }]) - revenue, = Account.search([('kind', '=', 'revenue')]) - expense, = Account.search([('kind', '=', 'expense')]) + revenue, = Account.search([('type.revenue', '=', True)]) + expense, = Account.search([('type.expense', '=', True)]) tax_account, = Account.search([ ('name', '=', 'Main Tax'), ])