forked from OCA/server-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bd2ba5
commit 311fe7e
Showing
4 changed files
with
67 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <https://twitter.com/legalsylvain> | ||
* XCG Consulting, part of `Orbeet <https://orbeet.io/>`__: | ||
|
||
* Vincent Hatakeyama <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters