From b2596ce81490cd3b8e1218cfd19d2843fa1a6f04 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 25 Nov 2020 14:46:02 +0000 Subject: [PATCH] [FIX] account: suspense account type The suspense account created doesn't have the type corresponding to the domain: https://github.com/odoo/odoo/blob/658d0fa32f35f4c4f9a1828b11fa383d3dad3b46/addons/account/models/account_journal.py#L97 opw-2387857 closes odoo/odoo#62336 Signed-off-by: Nicolas Martinelli (nim) --- addons/account/models/chart_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index 98f6f3f59be60..ade616ceffd5e 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -166,7 +166,7 @@ def _create_liquidity_journal_suspense_account(self, company, code_digits): return self.env['account.account'].create({ 'name': _("Bank Suspense Account"), 'code': self.env['account.account']._search_new_account_code(company, code_digits, company.bank_account_code_prefix or ''), - 'user_type_id': self.env.ref('account.data_account_type_current_assets').id, + 'user_type_id': self.env.ref('account.data_account_type_current_liabilities').id, 'company_id': company.id, })