[MOV] base: move base.sql to data/base_data.sql

This commit is contained in:
Thibault Delavallée
2017-11-27 11:13:39 +01:00
parent d350c438fe
commit ca1a207aa3
2 changed files with 3 additions and 3 deletions
+3 -3
View File
@@ -17,12 +17,12 @@ def is_initialized(cr):
def initialize(cr):
""" Initialize a database with for the ORM.
This executes base/base.sql, creates the ir_module_categories (taken
from each module descriptor file), and creates the ir_module_module
This executes base/data/base_data.sql, creates the ir_module_categories
(taken from each module descriptor file), and creates the ir_module_module
and ir_model_data entries.
"""
f = odoo.modules.get_module_resource('base', 'base.sql')
f = odoo.modules.get_module_resource('base', 'data', 'base_data.sql')
if not f:
m = "File not found: 'base.sql' (provided by module 'base')."
_logger.critical(m)