Skip to content

Commit 2e7addf

Browse files
committed
Fix loading registry from odoo.registry method is deprecated
Registry class is present and signature does change since v10.0
1 parent ca110a2 commit 2e7addf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_odoo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def load_registry():
164164
# since Odoo sets it when loading test suites.
165165
threading.current_thread().testing = True
166166
with _worker_db_name() as db_name:
167-
odoo.registry(db_name)
167+
odoo.modules.registry.Registry(db_name)
168168
yield
169169

170170

0 commit comments

Comments
 (0)