In OpenERP all the content is included in Manifest file __openerp__.py.
This file, which must be a Python dict literal, is responsible to-
1- Determine the XML files that will be parsed during the initialization of the server.
2- Determine the dependencies of the created module.
3- Declare additional meta data.
This file must contain a Python dictionary with the following values:
name => The name of the module in English.
version => The version of the module.
summary => Short description or keywords
description => The module description (text).
category => The categrory of the module
author => The author of the module.
website => URL of the website of the module.
license => The license of the module (default: AGPL-3).
depends => List of modules on which this module depends beside base.
data => List of .xml files to load when the module is installed or updated.
demo => List of additional .xml files to load when the module is installed or updated and demo flag is active.
installable => True or False. Determines whether the module is installable or not.
auto_install => True or False (default: False). If set to True, the module is a link module. It will be installed as soon as all its dependencies are installed.
Exaple:-
For the academy module, here is an example of __openerp__.py declaration file:
{
'name' : "Academy",
'version' : "1.0",
'author' : "OpenERP",
'category' : "Tools",
'depends' : ['mail'],
'data' : [
'academy_view.xml',
'academy_data.xml',
'report/module_report.xml',
'wizard/module_wizard.xml',
],
'demo' : [
'academy_demo.xml'
],
'installable': True,
}
0 Comment(s)