diff --git a/pytest_odoo.py b/pytest_odoo.py index 54cac44..ba4e131 100644 --- a/pytest_odoo.py +++ b/pytest_odoo.py @@ -164,7 +164,7 @@ def load_registry(): # since Odoo sets it when loading test suites. threading.current_thread().testing = True with _worker_db_name() as db_name: - odoo.registry(db_name) + odoo.modules.registry.Registry(db_name) yield