[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) <flg@odoo.com> Signed-off-by: abla001 <abla@odoo.com>
This commit is contained in:
@@ -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).')
|
||||
|
||||
Reference in New Issue
Block a user