We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c1a6e commit b7fbb07Copy full SHA for b7fbb07
src/testing.py
@@ -7,6 +7,7 @@
7
8
import odoo
9
from odoo import api, release
10
+from odoo.modules.registry import Registry
11
from odoo.tests.common import BaseCase, MetaCase, TransactionCase, get_db_name
12
from odoo.tools import config
13
from odoo.tools.parse_version import parse_version
@@ -143,7 +144,7 @@ def _init_db(self):
143
144
UpgradeCommon.__initialized = True
145
146
def _setup_registry(self):
- self.registry = odoo.registry(get_db_name())
147
+ self.registry = Registry(get_db_name())
148
self._data_table_cr = (
149
self.registry.cursor()
150
) # use to commit in upgrade_test_data, dont use it for anything else
0 commit comments