Search 1.9 billion lines of Odoo code on GitHub

module_change_auto_install

Author: GRAP, Odoo Community Association (OCA)
License: AGPL-3
Branch: 16.0
Repository: acsone/server-tools
Dependencies: base
Languages: HTML (411, 67.9%), Python (85, 14.0%), and reStructuredText (109, 18.0%)
Other branches: 12.0, 14-fix-mc-base_tech_user-dro, 14.0, 14.0-mass_mailing_mail_server-mle, 14.0-session_db-sbi, 16.0-base_time_window-sbj, 16.0-mig-base_sparse_field_list_support-hda, and pre-commit-cache-sbi
Other repositories: AITIC/server-tools, Change2improve/server-tools, Digital5-Odoo/server-tools, Dobtor-OCA/server-tools, ERPLibre/server-tools, ForgeFlow/server-tools, Gabinete-Digital/server-tools, Ingeos/server-tools, Jarsa/server-tools, LevelPrime/server-tools, OCA/server-tools, Rad0van/server-tools, SeuMarco/server-tools, SimoneVagile/server-tools, StefanRijnhart/server-tools, TRESCLOUD/server-tools, Tecnativa/server-tools, Vauxoo/server-tools, YannickB/server-tools, aaltinisik/server-tools, adhoc-dev/server-tools, akretion/server-tools, anhvu-sg/server-tools, antilhue/server-tools, aurestic/server-tools, avoinsystems/server-tools, blooparksystems/server-tools, bmya/server-tools, brain-tec/server-tools, camptocamp/server-tools, coopiteasy/server-tools, ddico/server-tools, ecosoft-odoo/server-tools, factorlibre/server-tools, focusate/oca-server-tools, grindtildeath/server-tools, gurneyalex/server-tools, hbrunn/server-tools, hibou-io/oca-server-tools, initOS/server-tools, invitu/server-tools, kmee/server-tools, legalsylvain/server-tools, modoolar/server-tools, newtratip/server-tools, nilshamerlinck/server-tools, ntsirintanis/server-tools, nuobit/server-tools, petrus-v/server-tools, praxigento/oca-server-tools, rven/server-tools, sebalix/server-tools, sodexis/server-tools, sunflowerit/server-tools, tafaRU/server-tools, tarteo/server-tools, tegin/server-tools, tirma-sa/server-tools, trevi-software/server-tools, unitek-solusi/OCA-server-tools, ursais/server-tools, versada/server-tools, ypapouin/server-tools, zarumaru/server-tools, and zhaohuaw/server-tools

<h1 class="title">Change auto installable modules</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/module_change_auto_install"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_change_auto_install"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>In odoo, by default some modules are marked as auto installable by the <code>auto_install</code> key present in the manifest.</p> <ul class="simple"> <li>This feature is very useful for &quot;glue&quot; modules that allow two modules to work together. (A typical example is <code>sale_stock</code> which allows <code>sale</code> and <code>stock</code> modules to work together).</li> <li>However, Odoo SA also marks some modules as auto installable, even though this is not technically required. This can happen for modules the company wants to promote like <code>iap</code>, modules with a big wow effect like <code>partner_autocomplete</code>, or some modules they consider useful by default like <code>account_edi</code>. See the discussion: <a class="reference external" href="https://github.com/odoo/odoo/issues/71190">https://github.com/odoo/odoo/issues/71190</a></li> </ul> <p>This module allows to change by configuration, the list of auto installable modules, adding or removing some modules to auto install.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#installation" id="id1">Installation</a></li> <li><a class="reference internal" href="#configuration" id="id2">Configuration</a></li> <li><a class="reference internal" href="#development" id="id3">Development</a></li> <li><a class="reference internal" href="#bug-tracker" id="id4">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id5">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id6">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li> </ul> </li> </ul> </div> <a name="installation"></a> <h2><a class="toc-backref" href="#id1">Installation</a></h2> <p>You don't have to install this module. To make the features working :</p> <ul class="simple"> <li>make the module <code>module_change_auto_install</code> available in your addons path</li> <li>update your <code>odoo.cfg</code> following the &quot;Configure&quot; section</li> </ul> <a name="configuration"></a> <h2><a class="toc-backref" href="#id2">Configuration</a></h2> <ul class="simple"> <li>Edit your <code>odoo.cfg</code> configuration file:</li> <li>Add the module <code>module_change_auto_install</code> in the <code>server_wide_modules</code> list.</li> <li>(optional) Add a new entry <code>modules_auto_install_disabled</code> to mark a list of modules as NOT auto installable.</li> <li>(optional) Add a new entry <code>modules_auto_install_enabled</code> to mark a list of modules as auto installable. This feature can be usefull for companies that are hosting a lot of Odoo instances for many customers, and want some modules to be always installed.</li> </ul> <p><strong>Typical Settings</strong></p> <pre> <code lang="shell">server_wide_modules = web,module_change_auto_install modules_auto_install_disabled = partner_autocomplete, iap, mail_bot modules_auto_install_enabled = web_responsive:web, base_technical_features, disable_odoo_online, account_usability</code> </pre> <p>Run your instance and check logs. Modules that has been altered should be present in your log, at the load of your instance:</p> <pre> <code lang="shell">INFO db_name odoo.addons.module_change_auto_install.patch: Module 'iap' has been marked as NOT auto installable. INFO db_name odoo.addons.module_change_auto_install.patch: Module 'mail_bot' has been marked as NOT auto installable. INFO db_name odoo.addons.module_change_auto_install.patch: Module 'partner_autocomplete' has been marked as NOT auto installable. INFO db_name odoo.modules.loading: 42 modules loaded in 0.32s, 0 queries (+0 extra)</code> </pre> <p><strong>Advanced Configuration Possibilities</strong></p> <p>if your <code>odoo.cfg</code> file contains the following configuration:</p> <pre> <code lang="shell">modules_auto_install_enabled = account_usability, web_responsive:web, base_technical_features:, point_of_sale:sale/purchase</code> </pre> <p>The behaviour will be the following:</p> <ul class="simple"> <li><code>account_usability</code> module will be installed as soon as all the default dependencies are installed. (here <code>account</code>)</li> <li><code>web_responsive</code> module will be installed as soon as <code>web</code> is installed. (Althought <code>web_responsive</code> depends on <code>web</code> and <code>mail</code>)</li> <li><code>base_technical_features</code> will be ALWAYS installed</li> <li><code>point_of_sale</code> module will be installed as soon as <code>sale</code> and <code>purchase</code> module are installed.</li> </ul> <a name="development"></a> <h2><a class="toc-backref" href="#id3">Development</a></h2> <p>If you upgrade your odoo Instance from a major version to another, using the OCA Free Software project &quot;OpenUpgrade&quot;, you can also use this module during the upgrade process, to avoid the installation of useless new modules.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id4">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20module_change_auto_install%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id5">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id6">Authors</a></h3> <ul class="simple"> <li>GRAP</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id7">Contributors</a></h3> <ul class="simple"> <li>Sylvain LE GAL &lt;<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id8">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p><a class="reference external" href="https://github.com/legalsylvain"><img alt="legalsylvain" src="https://github.com/legalsylvain.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/module_change_auto_install">OCA/server-tools</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>