Basic openerp module directory structure:-
In OpenErp all module of openerp server are located in the server/addons directory and creates all new module in openerp, to do this 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, create report, wizards, workflows.
Python Module Descriptor File __init__.py:-
The __init__.py file in openerp is 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:
import module
0 Comment(s)