diff --git a/module_change_auto_install/README.rst b/module_change_auto_install/README.rst index 47e665c1ae2..1c3c6df6325 100644 --- a/module_change_auto_install/README.rst +++ b/module_change_auto_install/README.rst @@ -14,13 +14,13 @@ Change auto installable modules :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github - :target: https://github.com/OCA/server-tools/tree/15.0/module_change_auto_install + :target: https://github.com/OCA/server-tools/tree/16.0/module_change_auto_install :alt: OCA/server-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-module_change_auto_install + :target: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_change_auto_install :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/149/15.0 + :target: https://runbot.odoo-community.org/runbot/149/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -75,22 +75,48 @@ Configuration server_wide_modules = web,module_change_auto_install - modules_auto_install_disabled = partner_autocomplete,iap,mail_bot,account_edi,account_edi_facturx,account_edi_ubl + modules_auto_install_disabled = + partner_autocomplete, + iap, + mail_bot - modules_auto_install_enabled = web_responsive,web_no_bubble,base_technical_features,disable_odoo_online,account_menu + 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: .. code-block:: 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.addons.module_change_auto_install.patch: Module 'account_edi' has been marked as not auto installable. - INFO db_name odoo.addons.module_change_auto_install.patch: Module 'account_edi_facturx' has been marked as not auto installable. - INFO db_name odoo.addons.module_change_auto_install.patch: Module 'account_edi_ubl' has been marked as not auto installable. + 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: + +.. code-block:: shell + + modules_auto_install_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. + Development =========== @@ -105,7 +131,7 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -143,6 +169,6 @@ Current `maintainer `__: |maintainer-legalsylvain| -This module is part of the `OCA/server-tools `_ project on GitHub. +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. diff --git a/module_change_auto_install/static/description/index.html b/module_change_auto_install/static/description/index.html index 0dbf4816e7d..1a2103e11e9 100644 --- a/module_change_auto_install/static/description/index.html +++ b/module_change_auto_install/static/description/index.html @@ -367,7 +367,7 @@

Change auto installable modules

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

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

    @@ -421,20 +421,40 @@

    Configuration

     server_wide_modules = web,module_change_auto_install
     
    -modules_auto_install_disabled = partner_autocomplete,iap,mail_bot,account_edi,account_edi_facturx,account_edi_ubl
    +modules_auto_install_disabled =
    +    partner_autocomplete,
    +    iap,
    +    mail_bot
     
    -modules_auto_install_enabled = web_responsive,web_no_bubble,base_technical_features,disable_odoo_online,account_menu
    +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.addons.module_change_auto_install.patch: Module 'account_edi' has been marked as not auto installable.
    -INFO db_name odoo.addons.module_change_auto_install.patch: Module 'account_edi_facturx' has been marked as not auto installable.
    -INFO db_name odoo.addons.module_change_auto_install.patch: Module 'account_edi_ubl' has been marked as not auto installable.
    +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/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.
    • +

    Development

    @@ -448,7 +468,7 @@

    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 smashing it by providing a detailed and welcomed -feedback.

    +feedback.

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

    @@ -474,7 +494,7 @@

    Maintainers

    promote its widespread use.

    Current maintainer:

    legalsylvain

    -

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

    +

    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.