Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


auto-install, installable & active in __openerp__.py file

on 6/4/13, 5:51 AM 6,318 views
Hi guyz,
   I am using OpenERP 7.0 version to understand inherit concept with multiple custom modules.

   I inferred following conclusions in __openerp__.py file:

1. auto-install :
        -default value set is False
        -If false, the dependent modules are not installed if not installed prior to                       the dependent module.
        -If True, all corresponding dependent modules are installed at the time of                         installing this module.

2. installable:
        -Default - ?
        -True, module can be installed.
        -False, module is listed in application, but cannot install them.

3. active:
        -True: the module is installed after updating openerp session
        -False: module not installed automatically

Give me extra details and check whether the conclusions I derived are correct and tell me the scenarios at which these are used in inherit. For ex: module "notebook" to be implemented in "test".
On 6/7/13, 10:42 AM

The auto_install flag means that the module will be automatically installed as soon as all its dependencies are satisfied. It does not mean that the module will be automatically installed upon database creation. It can be used for that purpose by setting it on a module that has no dependencies however.

Except that point, your conclusions are correct.

As for the inherit mechanism, you don't inherit modules, but objects. If you create a custom module B with an object that inherits an object of module A, you'll just add module A in the dependencies of module B. That way, if you install B, A will automatically be installed. Besides, in the __openerp.py__ file of your module B, you can set - installable to True, which means module B can be installed - active to True, which means module B will be automatically installed on a new database - auto_install to True, which means module B will be automatically installed if all dependencies are met.

Hope it helps.



Antonio M. Vigliotti
On 6/11/14, 10:52 AM

I am afraid parameter is auto_install no auto-install

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 6/4/13, 5:51 AM
Seen: 6318 times
Last updated: 3/16/15, 8:10 AM