Sunday, July 5, 2026
1 change · saas-19.1
Resolved issues and error corrections
A recent test within the account module was failing due to an outdated approach to clearing demo data. This update correctly reuses a proven test method and includes a necessary step to ensure data is properly processed, resolving the error and improving test reliability. This ensures accurate reporting and stability.
Original PR description
The test introduced by d60564a42b7c7b16d1d975146291835b65a19461 was using the field `deferred_move_ids` which is defined by account_accountant. As it is used to clear the pre-existing moves (typically demo data), we are re-using the same conditional as test_tour.py to check whether this field is available. By the way, we also add a missing flush_recordset that caused errors in test_kpi_summary_reports_unreconciled_bank_statements. Runbot-error: [939986](https://runbot.odoo.com/odoo/error/939986) Forward-Port-Of: odoo/odoo#271218