summaryrefslogtreecommitdiff
path: root/odoo/modules/db.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2016-09-02 16:16:50 +0200
committerRaphael Collet <rco@openerp.com>2016-09-02 17:28:12 +0200
commit4a700d0ad9eecb00233f734042a96c3959aa7e83 (patch)
tree7dffd79a4d3d7e19110a0f509e37ff8ff9eedc36 /odoo/modules/db.py
parent9e64f9f9514194d74e166b032add8511182f2677 (diff)
[FIX] odoo: rename imports and adapt import hooks
Diffstat (limited to 'odoo/modules/db.py')
-rw-r--r--odoo/modules/db.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/odoo/modules/db.py b/odoo/modules/db.py
index 66051f8ca4d..f2592f947e2 100644
--- a/odoo/modules/db.py
+++ b/odoo/modules/db.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-import openerp.modules
+import odoo.modules
import logging
_logger = logging.getLogger(__name__)
@@ -23,25 +23,25 @@ def initialize(cr):
and ir_model_data entries.
"""
- f = openerp.modules.get_module_resource('base', 'base.sql')
+ f = odoo.modules.get_module_resource('base', 'base.sql')
if not f:
m = "File not found: 'base.sql' (provided by module 'base')."
_logger.critical(m)
raise IOError(m)
- base_sql_file = openerp.tools.misc.file_open(f)
+ base_sql_file = odoo.tools.misc.file_open(f)
try:
cr.execute(base_sql_file.read())
cr.commit()
finally:
base_sql_file.close()
- for i in openerp.modules.get_modules():
- mod_path = openerp.modules.get_module_path(i)
+ for i in odoo.modules.get_modules():
+ mod_path = odoo.modules.get_module_path(i)
if not mod_path:
continue
# This will raise an exception if no/unreadable descriptor file.
- info = openerp.modules.load_information_from_description_file(i)
+ info = odoo.modules.load_information_from_description_file(i)
if not info:
continue