Odoo Help


1 Answer

Yannick Vaucher Switzerland

--Yannick Vaucher--

| 5 7 11
Lausanne, Switzerland
--Yannick Vaucher--

Yannick Vaucher Switzerland
2/8/13, 5:54 PM

Create a link module

If your aim to make differents behaviors depending on whether or not a module is installed, you might create a link modules.

From OpenERP 7.0 [1], you can specifiy in your __openerp__.py an option called auto_install

  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.

With this, you should be able to create a module A without all dependancies, and an other link module L which pill patch your module A taking in account the changes made by the module you didn't wanted to set in the module A dependancies.

Otherwise, you may have issues with inheritances processes.

[1] [Module structure](http://doc.openerp.com/trunk/developers/server/03_module_dev_01/)

1 Comment
Poiesis Consulting, Nico Bustillos Bolivia
2/18/13, 11:16 AM

Ok, this seems the most logical and elegant way to solve this particular problem. However, it would be nice to know if there is a way to specifically "check for installed modules from my __init__.py" for some other scenario.

Ask a Question
Keep Informed
0 follower(s)
About This Community

This platform 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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now