diff options
| author | Hammad Arif <arih@odoo.com> | 2025-01-20 12:19:53 +0000 |
|---|---|---|
| committer | Hammad Arif <arih@odoo.com> | 2025-02-07 09:03:40 +0000 |
| commit | 11a6b2eabca5f88fcd9864e21d059a99e9cbb6df (patch) | |
| tree | 3db89266bd813dff272f720b08ab971891ea3373 | |
| parent | a7e9614bb4743d099735f7a5b380c0f76a0ba4b6 (diff) | |
[FIX] accounting: Setting reconcile false for Bank and Cash type accounts explicitly.
Behavior Before the Commit:
Whenever you change the account type of a Cash and Bank account to a different type,
please ensure that the Reconcile option is set to True. However, if you later switch
the account type back to Cash and Bank, the Reconcile option will remain True and
will not automatically revert to False.
Fix: explicitly set reconcile to False for account_type 'Cash and Bank' in compute_reconcile
method.
Behavior After the commit:
Reconcile will be changed to false on changing the account type to Cash and Bank.
opw-4450088: https://www.odoo.com/odoo/my-support-tasks/4450088
closes odoo/odoo#196893
X-original-commit: 592038ca9b7c6e6376b2a845ba6304cb93e3b0e1
Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
| -rw-r--r-- | addons/account/models/account_account.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/account/models/account_account.py b/addons/account/models/account_account.py index c27c0f9f211..5df63c08b36 100644 --- a/addons/account/models/account_account.py +++ b/addons/account/models/account_account.py @@ -690,6 +690,8 @@ class AccountAccount(models.Model): account.reconcile = False elif account.account_type in ('asset_receivable', 'liability_payable'): account.reconcile = True + elif account.account_type == 'asset_cash': + account.reconcile = False # For other asset/liability accounts, don't do any change to account.reconcile. def _set_opening_debit(self): |
