Tuesday, February 24, 2026
1 change · saas-18.4
New functionality added to Odoo
A new internal check detects when tests add temporary methods to Odoo models without properly cleaning them up. This helps prevent one test from accidentally affecting another, improving reliability of the test suite and reducing risk of hidden regressions.
Original PR description
Setting methods on models during tests and not removing them afterwards can cause misbehaviour of other tests. Setting mock or test-specific methods is not an issue but it should be done via patchers. https://runbot.odoo.com/odoo/error/237983 Forward-Port-Of: odoo/odoo#249491 Forward-Port-Of: odoo/odoo#247151