Thursday, February 19, 2026
1 change · saas-18.2
New functionality added to Odoo
A new internal test check helps detect when tests temporarily add methods to Odoo models but do not clean them up afterwards. This reduces the risk of one test affecting another, improving reliability for future releases without changing day-to-day user functionality.
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#247151