Skip to content

Commit

Permalink
[FIX] account: suspense account type
Browse files Browse the repository at this point in the history
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#62336

Signed-off-by: Nicolas Martinelli (nim) <[email protected]>
  • Loading branch information
nim-odoo committed Nov 25, 2020
1 parent 8597aad commit b2596ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account/models/chart_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})

Expand Down

0 comments on commit b2596ce

Please sign in to comment.