Skip to content

Commit

Permalink
[FIX] account : add current assets to default bank supense account
Browse files Browse the repository at this point in the history
Purpose
=======

possible values of Default Bank Supense Account (in accounting settings) are Current Liabilities
when they must be Current Assets.

Specification
=============

to solve the issue we added Current Assets to the possible values of this field.

opw-2855788

closes odoo#93621

Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
  • Loading branch information
abla001 committed Jul 4, 2022
1 parent 3704aa3 commit 2730b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account/models/res_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ResConfigSettings(models.TransientModel):
string='Bank Suspense Account',
readonly=False,
related='company_id.account_journal_suspense_account_id',
domain=lambda self: "[('deprecated', '=', False), ('company_id', '=', company_id), ('user_type_id.type', 'not in', ('receivable', 'payable')), ('user_type_id', '=', %s)]" % self.env.ref('account.data_account_type_current_liabilities').id,
domain=lambda self: "[('deprecated', '=', False), ('company_id', '=', company_id), ('user_type_id.type', 'not in', ('receivable', 'payable')), ('user_type_id', 'in', %s)]" % [self.env.ref('account.data_account_type_current_assets').id, self.env.ref('account.data_account_type_current_liabilities').id],
help='Bank Transactions are posted immediately after import or synchronization. '
'Their counterparty is the bank suspense account.\n'
'Reconciliation replaces the latter by the definitive account(s).')
Expand Down

0 comments on commit 2730b80

Please sign in to comment.