Since the PR introducing the wowl environment in the discuss app, the model manager is not set in debug mode during tests. The debug mode is usefull since it adds integrity checks and more verbose error messages. This commit restores it. closes odoo/odoo#99556 Related: odoo/enterprise#31086 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>