odoo/odoo#247151

Created by Framework (ORM), Xavier Morel (xmo)
Merged at de056cc784a3bbe2575fd3c9e81ca62e73c362d4

Statuses:

Linked pull requests
label
odoo-dev:18.0-model-mutations-xmo
head
2dadfd616afdcc0ff11b9f2e830b5288dd8fe816
merged
4 months ago by Framework (ORM), Xavier Morel (xmo)
odoo/odoo odoo/enterprise
18.0 #247151 #106948
saas-18.2 #249005 #107653
saas-18.3 #249491 #107940
saas-18.4 #250108 #108317
19.0 #250155 missing statuses missing r+ #108351 missing statuses missing r+
saas-19.1
saas-19.2
saas-19.3
master

[ADD] core: checker for methods being set on models during tests

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