merge account type and kind

This commit is contained in:
?ngel ?lvarez 2019-04-13 15:23:08 +02:00
parent b324d13701
commit bc501d262d
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ class TestAccountInvoiceFacturaeCase(ModuleTestCase):
'company': company.id, 'company': company.id,
'facturae_type': '01', 'facturae_type': '01',
}]) }])
revenue, = Account.search([('kind', '=', 'revenue')]) revenue, = Account.search([('type.revenue', '=', True)])
expense, = Account.search([('kind', '=', 'expense')]) expense, = Account.search([('type.expense', '=', True)])
tax_account, = Account.search([ tax_account, = Account.search([
('name', '=', 'Main Tax'), ('name', '=', 'Main Tax'),
]) ])