Thiyagarajan S
Thiyagarajan S

Reputation: 5

Use of __openerp__.py file in openerp7?

What is the use of Use of openerp.py file in openerp7.I understand the usage of init.py file.for my custom module how it is useful?

Upvotes: 0

Views: 998

Answers (2)

Bhavesh Odedra
Bhavesh Odedra

Reputation: 11141

The __openerp__.py file is the OpenERP descriptor which contains a single Python dictionary with the actual declaration of Module. It is necessary file for an openerp module. All the details, dependencies, files used etc are specified here in the __openerp__.py file. Here is Python dictionary key description

  • name :- Name of Module like 'Sale'
  • version :- Version of Module like '1.0'
  • author :- Name of author like who develop this module
  • category :- Name of Module category like 'Accounting'
  • website :- Website of a Module
  • depends :- It's take a list of dependencies, when module install first install the depends modules
  • description :- Description of the module
  • summary :- summary of the module.
  • data :- Data file where we define .xml file path
  • demo :- Use for demonstration data, if database uses demo data, then it will load.
  • test :- test data(yaml testing, Unit testing) for this module,
  • active :- Where to install automatically at new Database creation.
  • installable :- Whether module is installable or not
  • auto_install :- When all the dependencies are installed, then this module will automatically install if its true.

Hope this will help you.

Upvotes: 3

Gustavo
Gustavo

Reputation: 36

The openep.py file is like the setup.py file in Python modules. You need it in every module

Upvotes: 0

Related Questions