[FIX] base: do not put mockup class in future registries

Followup of #82838 and #82844

By default, every subclass of BaseModel is registered in a mapping for
the automatic discovery of model classes by registries.  Prevent
registration of the mockup class used for rendering the database manager
templates.

closes odoo/odoo#83626

X-original-commit: 3bce74b20f8c15befee453382e3ab4697bee6960
Signed-off-by: Raphael Collet <rco@odoo.com>
This commit is contained in:
Raphael Collet
2022-01-28 21:51:43 +00:00
parent 0f4cc6dcce
commit 95d176c4df
+1 -1
View File
@@ -376,7 +376,7 @@ def render(template_name, values, load, **options):
_Registry__cache = {}
class MockIrQWeb(IrQWeb):
_name = 'ir.qweb.mock'
_register = False # not visible in real registry
pool = MockPool()