In OpenErp all module of openerp server are located in the server/addons directory, to create all new module in openerp follow this step:-
first step is create a subdirectory in the server/addons directory.
second step is create module description __openerp__.py file.
third step is create the python file containing the all object.
fourth step is create .xml file that download data like view, menu, entries, demo, data etc.
fifth step is optional step to create report, wizards, workflows.
Python Module Descriptor File __init__.py:->
The __init__.py file in openerp to executed at the start of the program.this file needs to import the python files that need to be loaded.
Example:-
if you create a "module.py" file, containing the description of your objects, you have to write one line in __init__.py:
0 Comment(s)