From 2e7addf5c1847b639ec244ef1e1d5f288fd0d59f Mon Sep 17 00:00:00 2001 From: Pierre Verkest Date: Sat, 19 Oct 2024 23:07:24 +0200 Subject: [PATCH] Fix loading registry from odoo.registry method is deprecated Registry class is present and signature does change since v10.0 --- pytest_odoo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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