diff options
| author | Raphael Collet <rco@openerp.com> | 2016-09-02 16:16:50 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-09-02 17:28:12 +0200 |
| commit | 4a700d0ad9eecb00233f734042a96c3959aa7e83 (patch) | |
| tree | 7dffd79a4d3d7e19110a0f509e37ff8ff9eedc36 /odoo/sql_db.py | |
| parent | 9e64f9f9514194d74e166b032add8511182f2677 (diff) | |
[FIX] odoo: rename imports and adapt import hooks
Diffstat (limited to 'odoo/sql_db.py')
| -rw-r--r-- | odoo/sql_db.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/sql_db.py b/odoo/sql_db.py index 4f26b57ae62..f2b200225a2 100644 --- a/odoo/sql_db.py +++ b/odoo/sql_db.py @@ -467,7 +467,7 @@ class LazyCursor(object): def __getattr__(self, name): cr = self._cursor if cr is None: - from openerp import registry + from odoo import registry cr = self._cursor = registry(self.dbname).cursor() for _ in xrange(self._depth): cr.__enter__() @@ -682,7 +682,7 @@ def db_connect(to, allow_uri=False): return Connection(_Pool, db, info) def close_db(db_name): - """ You might want to call openerp.modules.registry.Registry.delete(db_name) along this function.""" + """ You might want to call odoo.modules.registry.Registry.delete(db_name) along this function.""" global _Pool if _Pool: _Pool.close_all(connection_info_for(db_name)[1]) |
