Skip to content

Commit

Permalink
Fix loading registry from odoo.registry method is deprecated
Browse files Browse the repository at this point in the history
Registry class is present and signature does change since v10.0
  • Loading branch information
petrus-v committed Oct 19, 2024
1 parent ca110a2 commit 2e7addf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_odoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 2e7addf

Please sign in to comment.