Skip to main content
Odoo Community Association

Change auto installable modules

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

In odoo, by default some modules are marked as auto installable by the auto_install key present in the manifest.

  • This feature is very useful for “glue” modules that allow two modules to work together. (A typical example is sale_stock which allows sale and stock modules to work together).

  • 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 iap, modules with a big wow effect like partner_autocomplete, or some modules they consider useful by default like account_edi. See the discussion: https://github.com/odoo/odoo/issues/71190

This module allows to change by configuration, the list of auto installable modules, adding or removing some modules to auto install.

Table of contents

Installation

You don’t have to install this module. To make the features working :

  • make the module module_change_auto_install available in your addons path

  • either update your odoo.cfg or set the environment variables following the “Configure” section

Configuration

  • Edit your odoo.cfg configuration file:

  • Add the module module_change_auto_install in the server_wide_modules list.

  • (optional) Add a new entry modules_disabled beneath a new section [module_change_auto_install] to mark a list of modules as NOT auto installable. The environment variable ODOO_MODULES_AUTO_INSTALL_DISABLED can also be set.

  • (optional) Add a new entry modules_enabled beneath a new section [module_change_auto_install] 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. The environment variable ODOO_MODULES_AUTO_INSTALL_ENABLED can also be set.

The values in the configuration file takes precedence over the environment variable values.

Typical Settings

server_wide_modules = web,module_change_auto_install

[module_change_auto_install]
modules_disabled =
    partner_autocomplete,
    iap,
    mail_bot

modules_enabled =
    web_responsive:web,
    base_technical_features,
    disable_odoo_online,
    account_usability

When using environment variables, the same configuration is:

export ODOO_MODULES_AUTO_INSTALL_DISABLED=partner_autocomplete,iap,mail_bot
export ODOO_MODULES_AUTO_INSTALL_ENABLED=web_responsive:web,base_technical_features,disable_odoo_online,account_usability

Run your instance and check logs. Modules that has been altered should be present in your log, at the load of your instance:

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)

Advanced Configuration Possibilities

if your odoo.cfg file contains the following configuration:

[module_change_auto_install]
modules_enabled =
    account_usability,
    web_responsive:web,
    base_technical_features:,
    point_of_sale:sale/purchase

The behaviour will be the following:

  • account_usability module will be installed as soon as all the default dependencies are installed. (here account)

  • web_responsive module will be installed as soon as web is installed. (Althought web_responsive depends on web and mail)

  • base_technical_features will be ALWAYS installed

  • point_of_sale module will be installed as soon as sale and purchase module are installed.

When using environment variables, the same configuration is:

export ODOO_MODULES_AUTO_INSTALL_ENABLED=account_usability,web_responsive:web,base_technical_features:,point_of_sale:sale/purchase

Development

If you upgrade your odoo Instance from a major version to another, using the OCA Free Software project “OpenUpgrade”, you can also use this module during the upgrade process, to avoid the installation of useless new modules.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • GRAP

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

Current maintainer:

legalsylvain

This module is part of the OCA/server-tools project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Release files for odoo-addon-module-change-auto-install 19.0.1.0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-module-change-auto-install 19.0.1.0.0.2
File Interpreter ABI Platform
odoo_addon_module_change_auto_install-19.0.1.0.0.2-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_module_change_auto_install-19.0.1.0.0.2-py3-none-any.whl

Download URL odoo_addon_module_change_auto_install-19.0.1.0.0.2-py3-none-any.whl
Size 31.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
743adad4cbcf322a95291b4d338b5f41104f197e326e1b58093098545f5d21c4
BLAKE2b-256 checksum
How to use checksums
ef84605991d43e64bff564056c07b2eaea390d5b13aa373789559d5313c2dc23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page