我在Odoo 9上创建了一个超级简单的自定义模块。但我无法安装它,我收到一个错误:
ref(of: .value, with: { snapshot in
文件:
__初始化__吡啶:
Traceback (most recent call last):
File "/opt/odoo/openerp/modules/loading.py", line 123, in load_module_graph
load_openerp_module(package.name)
File "/opt/odoo/openerp/modules/module.py", line 324, in load_openerp_module
__import__('openerp.addons.' + module_name)
File "/opt/odoo/openerp/modules/module.py", line 60, in load_module
f, path, descr = imp.find_module(module_part, ad_paths)
ImportError: No module named examinations
和我的清单 __ openerp __。py :
# -*- coding: utf-8 -*-
from . import models
我的模块# -*- coding: utf-8 -*-
{
'name': "examinations",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Examinations Management Module
""",
'author': "My Company",
'website': "http://www.yourcompany.com",
'category': 'Education and Support',
'version': '0.1',
'depends': ['base'],
'data': [
'views/examinations_view.xml',
],
'installable': True,
}
位于模型目录中。代码是:
examinations.py
我无法理解错误。我创建了 init.py 文件,清单,模型,视图。