From 311fe7e353ddde9ac7cbcd1820e642ebb449e6ce Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 28 May 2024 19:06:05 +0000 Subject: [PATCH] [BOT] post-merge updates --- README.md | 2 +- module_change_auto_install/README.rst | 30 +++++++-- module_change_auto_install/__manifest__.py | 2 +- .../static/description/index.html | 61 ++++++++++++------- 4 files changed, 67 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index f28f4db07..757c866b6 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ addon | version | maintainers | summary [jsonifier](jsonifier/) | 16.0.0.0.1 | | JSON-ify data for all models [module_analysis](module_analysis/) | 16.0.1.0.1 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Add analysis tools regarding installed modules to know which installed modules comes from Odoo Core, OCA, or are custom modules [module_auto_update](module_auto_update/) | 16.0.1.0.2 | | Automatically update Odoo modules -[module_change_auto_install](module_change_auto_install/) | 16.0.1.0.1 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Customize auto installables modules by configuration +[module_change_auto_install](module_change_auto_install/) | 16.0.1.0.2 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Customize auto installables modules by configuration [onchange_helper](onchange_helper/) | 16.0.1.0.0 | | Technical module that ease execution of onchange in Python code [rpc_helper](rpc_helper/) | 16.0.1.0.0 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) | Helpers for disabling RPC calls [scheduler_error_mailer](scheduler_error_mailer/) | 16.0.1.0.0 | | Scheduler Error Mailer diff --git a/module_change_auto_install/README.rst b/module_change_auto_install/README.rst index 0d736eb0f..f8ac37a23 100644 --- a/module_change_auto_install/README.rst +++ b/module_change_auto_install/README.rst @@ -7,7 +7,7 @@ Change auto installable modules !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a94b2d6389517ce49645d155eedbd1061a3b5e67dd1c6fbcf3bd8aa7b1c1d792 + !! source digest: sha256:803c0e63b0a4fd39047840304e38f292dc26531ff41d17fc433439c1034f8dd7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -55,7 +55,7 @@ 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 -* update your ``odoo.cfg`` following the "Configure" section +* either update your ``odoo.cfg`` or set the environment variables following the "Configure" section Configuration ============= @@ -66,15 +66,20 @@ Configuration * (optional) Add a new entry ``modules_auto_install_disabled`` 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_auto_install_enabled`` 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** -.. code-block:: shell +.. code-block:: cfg server_wide_modules = web,module_change_auto_install @@ -89,6 +94,13 @@ Configuration disable_odoo_online, account_usability +When using environment variables, the same configuration is: + +.. code-block:: shell + + 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: .. code-block:: shell @@ -102,7 +114,7 @@ Run your instance and check logs. Modules that has been altered should be presen if your ``odoo.cfg`` file contains the following configuration: -.. code-block:: shell +.. code-block:: cfg modules_auto_install_enabled = account_usability, @@ -120,6 +132,13 @@ The behaviour will be the following: * ``point_of_sale`` module will be installed as soon as ``sale`` and ``purchase`` module are installed. +When using environment variables, the same configuration is: + +.. code-block:: shell + + export ODOO_MODULES_AUTO_INSTALL_ENABLED=account_usability,web_responsive:web,base_technical_features:,point_of_sale:sale/purchase + + Development =========== @@ -150,6 +169,9 @@ Contributors ~~~~~~~~~~~~ * Sylvain LE GAL +* XCG Consulting, part of `Orbeet `__: + + * Vincent Hatakeyama Maintainers ~~~~~~~~~~~ diff --git a/module_change_auto_install/__manifest__.py b/module_change_auto_install/__manifest__.py index ea46456f6..d8ab87961 100644 --- a/module_change_auto_install/__manifest__.py +++ b/module_change_auto_install/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Change auto installable modules", "summary": "Customize auto installables modules by configuration", - "version": "16.0.1.0.1", + "version": "16.0.1.0.2", "category": "Tools", "maintainers": ["legalsylvain"], "author": "GRAP, Odoo Community Association (OCA)", diff --git a/module_change_auto_install/static/description/index.html b/module_change_auto_install/static/description/index.html index a9635ea27..f2e3462b5 100644 --- a/module_change_auto_install/static/description/index.html +++ b/module_change_auto_install/static/description/index.html @@ -366,7 +366,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:a94b2d6389517ce49645d155eedbd1061a3b5e67dd1c6fbcf3bd8aa7b1c1d792 +!! source digest: sha256:803c0e63b0a4fd39047840304e38f292dc26531ff41d17fc433439c1034f8dd7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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 @@ -403,7 +403,7 @@ adding or removing some modules to auto install.

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
  • -
  • update your odoo.cfg following the “Configure” section
  • +
  • either update your odoo.cfg or set the environment variables following the “Configure” section
@@ -412,26 +412,35 @@ adding or removing some modules to auto install.

  • 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_auto_install_disabled to mark -a list of modules as NOT auto installable.
  • +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_auto_install_enabled 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.
  • +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
    +
    +modules_auto_install_disabled =
    +    partner_autocomplete,
    +    iap,
    +    mail_bot
    +
    +modules_auto_install_enabled =
    +    web_responsive:web,
    +    base_technical_features,
    +    disable_odoo_online,
    +    account_usability
    +
    +

    When using environment variables, the same configuration is:

    -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
    +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:

    @@ -442,12 +451,12 @@ INFO db_name odoo.addons.module_ch
     

    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
    +
    +modules_auto_install_enabled =
    +    account_usability,
    +    web_responsive:web,
    +    base_technical_features:,
    +    point_of_sale:sale/purchase
     

    The behaviour will be the following:

      @@ -456,6 +465,10 @@ INFO db_name odoo.addons.module_ch
    • 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

    @@ -484,6 +497,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

    Contributors