Daily updates from Odoo
Wednesday, June 25, 2025
2 changes · saas-18.3
Resolved issues and error corrections
The bank reconciliation wizard now calculates the remaining amount correctly when users add multiple lines. This prevents previously selected lines from being counted again, helping accountants avoid confusing or inaccurate reconciliation totals.
Original PR description
In this commit: https://github.com/odoo/enterprise/commit/74306d39479f9cfb24bb749a520c533df3f7e404 change the computation of the remaining amount of the reconcile wizard. Since selectedLineSum compute the sum of the line selected when adding 2 lines the remaining amount would be changed and kept in the state. Then adding a line again, the selectedLineSum would be the sum of the 3 lines and not just the new line that we just added. no task id
Users can now save bank transactions even when all reconciliation models have been removed. This prevents an error that blocked transaction creation in Accounting and improves reliability for companies using custom reconciliation setups.
Original PR description
Currently, an error occurs when all reconciliation models are deleted and the user attempts to create a Transactions(bank statement lines). **Steps to produce:** - Install the `accountant` module. - Navigate to `Accounting > Bank > Models (under Reconciliation)` and delete all reconciliation models. - Go to bank transactions, Create a new `bank statement line` and attempt to `save` it. **Error:** `SyntaxError: syntax error at or near ')' LINE 39: AND reco_model.id IN ()` **Root Cause:** At [1], an `SQL query` is executed that references `Reconciliation models(reco_models)`, as `reco_models` is empty, this is causing an error. [1] https://github.com/odoo/enterprise/blob/8289993c7d52a6cf71982aace87bcb11fde16967/account_accountant/models/account_bank_statement.py#L220 This commit ensures and prevent error when user add transactions without reconciliation model. sentry - 6650696331