Greetings Everyone,
In my previous post i provide overview module structure of odoo(OpenERP), in that i had provide basic information about __openerp__.py file. Here i will explain __openerp__.py file in detail. like what this file contain and why all contain provided in this file.
__openerp__.py : This is the manifest file of the module. It contains various information about your module i.e. Title, Description, Summary etc. You can put some light on the person installing it as why you are building this module, what is the purpose of this module and what your module really does.
In my previous post i provide overview module structure of odoo(OpenERP), in that i had provide basic information about __openerp__.py file. Here i will explain __openerp__.py file in detail. like what this file contain and why all contain provided in this file.
__openerp__.py : This is the manifest file of the module. It contains various information about your module i.e. Title, Description, Summary etc. You can put some light on the person installing it as why you are building this module, what is the purpose of this module and what your module really does.
Now let see what __openerp__.py file contain:
- name : Name of your module. (required).
- version : A current version of your module. if new module then version must be 1.0 after some updation change your version. for example as android is changing its version.
- complexity : Used to provide complexity level of you module.
- description : A long description of your module. this is most important part of to describe. With this you can guide the user who will gonna use this module. In this you can explain about the functionality of your module.
- category : Here you need to mention in which section your module belongs. if you open some of module of odoo's addons, each module reside in some category like Sales, Purchase, Inventory etc.
- author : The author of module, name of person/company who is authorized.
- website : Your website or company website. URL of the website of the module.
- license : The license of the module (default: LGPL-3).
- contributors : Here you can specify the name of person who have contribute his/her time, efforts, mind, money etc. to produce module.
- depends : List of modules on which this module depends beside base. for e.g if you have inherit sale.order then you have to specify sale module as a depends in your module.
- sequence : Sequence is the number position of your module while module is loaded in odoo module list.
- data : List of files to load when the module is installed or updated. It can contain the following files,
- The view files [.xml file]
- The data files [.xml] (for some dummy data)
- The security file [.xml] #this file contains some groups and record rules
- The CSV files. #this file contains access control over user or groups
- qweb : For web interface, you can place your all template file here.
- js : Specify all your js file here.
- test : Here, you can put your test cases file.
- images : Specify images used in your module.
- 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.
- application : True
- price : price of your module.
- currency : 'INR'
Click to enlarge image.
To learn about the Module Structure of Odoo, Click Here
No comments:
Post a Comment