|
我在source--addons定义了一个包--mymodule:根据网上的自定义模块教程定义了三个文件:_init_.py _openerp_.py main.py
其中_init_.py 中的代码:import main
_openerp_.py中的代码:
# _*_ coding: utf-8 _*__
{
'name' : "Mymodule",
'summary' : """
我的第一个模块
""",
'description' : """
我的第一个模块,用于学习自定义模块。
""",
'author' : "shanglin",
'website' : "http://www.yourcompany.com",
# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blo ... ule/module_data.xml
# for the full list
'category' : "Test",
'version' : "1.11",
# any module necessary for this one to work correctly
'depends' : ['base'],
# always loaded
'data' : [
# 'security/ir.model.access.csv',
# 'views/mymodule_templates.xml',
# 'demo.xml',
],
# only loaded in demonstration mode
'demo' : [
'demo.xml',
],
}
main.py中的代码:
'''
Created on 2015年11月26日
@author: shanglin
'''
三个文件定义完后,重启了Odoo服务器,并且更新了模块列表,为什么还是找不到模块啊?是缺少文件还是代码出错了?
|
|