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_stockwhich allowssaleandstockmodules 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 likepartner_autocomplete, or some modules they consider useful by default likeaccount_edi. See the discussion: odoo/odoo#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
You don't have to install this module. To make the features working :
- make the module
module_change_auto_installavailable in your addons path - either update your
odoo.cfgor set the environment variables following the "Configure" section
- Edit your
odoo.cfgconfiguration file: - Add the module
module_change_auto_installin theserver_wide_moduleslist. - (optional) Add a new entry
modules_auto_install_disabledto mark a list of modules as NOT auto installable. The environment variableODOO_MODULES_AUTO_INSTALL_DISABLEDcan also be set. - (optional) Add a new entry
modules_auto_install_enabledto 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 variableODOO_MODULES_AUTO_INSTALL_ENABLEDcan 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
modules_auto_install_disabled =
partner_autocomplete,
iap,
mail_bot
modules_auto_install_enabled =
web_responsive:web,
base_technical_features,
disable_odoo_online,
account_usabilityWhen 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_usabilityRun 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:
modules_auto_install_enabled =
account_usability,
web_responsive:web,
base_technical_features:,
point_of_sale:sale/purchaseThe behaviour will be the following:
account_usabilitymodule will be installed as soon as all the default dependencies are installed. (hereaccount)web_responsivemodule will be installed as soon aswebis installed. (Althoughtweb_responsivedepends onwebandmail)base_technical_featureswill be ALWAYS installedpoint_of_salemodule will be installed as soon assaleandpurchasemodule 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/purchaseIf 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.
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.
- GRAP
- Sylvain LE GAL <https://twitter.com/legalsylvain>
- XCG Consulting, part of Orbeet:
- Vincent Hatakeyama <[email protected]>
This module is maintained by the OCA.
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:
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.





