From d126f01e304f52957c75e9f314b9e7d04e42864e Mon Sep 17 00:00:00 2001 From: "Abdelouahab (abla)" Date: Tue, 14 Jun 2022 15:38:26 +0000 Subject: [PATCH] [FIX] account : add current assets to default bank supense account 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/odoo#95233 X-original-commit: 2730b80942d3d32f72bae922cb06a61ecfa38c0f Signed-off-by: Florian Gilbert (flg) Signed-off-by: abla001 --- addons/account/models/res_config_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/res_config_settings.py b/addons/account/models/res_config_settings.py index 07ed0db5ca0..a6380c54c7e 100644 --- a/addons/account/models/res_config_settings.py +++ b/addons/account/models/res_config_settings.py @@ -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).')