2
2
Change auto installable modules
3
3
===============================
4
4
5
- .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5
+ ..
6
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6
7
!! This file is generated by oca-gen-addon-readme !!
7
8
!! changes will be overwritten. !!
8
9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
+ !! source digest: sha256:803c0e63b0a4fd39047840304e38f292dc26531ff41d17fc433439c1034f8dd7
11
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9
12
10
13
.. |badge1 | image :: https://img.shields.io/badge/maturity-Beta-yellow.png
11
14
:target: https://odoo-community.org/page/development-status
@@ -19,11 +22,11 @@ Change auto installable modules
19
22
.. |badge4 | image :: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20
23
:target: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_change_auto_install
21
24
:alt: Translate me on Weblate
22
- .. |badge5 | image :: https://img.shields.io/badge/runbot -Try%20me-875A7B.png
23
- :target: https://runbot .odoo-community.org/runbot/149/ 16.0
24
- :alt: Try me on Runbot
25
+ .. |badge5 | image :: https://img.shields.io/badge/runboat -Try%20me-875A7B.png
26
+ :target: https://runboat .odoo-community.org/builds?repo=OCA/server-tools&target_branch= 16.0
27
+ :alt: Try me on Runboat
25
28
26
- |badge1 | |badge2 | |badge3 | |badge4 | |badge5 |
29
+ |badge1 | |badge2 | |badge3 | |badge4 | |badge5 |
27
30
28
31
In odoo, by default some modules are marked as auto installable
29
32
by the ``auto_install `` key present in the manifest.
@@ -52,7 +55,7 @@ Installation
52
55
You don't have to install this module. To make the features working :
53
56
54
57
* make the module ``module_change_auto_install `` available in your addons path
55
- * update your ``odoo.cfg `` following the "Configure" section
58
+ * either update your ``odoo.cfg `` or set the environment variables following the "Configure" section
56
59
57
60
Configuration
58
61
=============
@@ -63,15 +66,20 @@ Configuration
63
66
64
67
* (optional) Add a new entry ``modules_auto_install_disabled `` to mark
65
68
a list of modules as NOT auto installable.
69
+ The environment variable ``ODOO_MODULES_AUTO_INSTALL_DISABLED `` can also be set.
66
70
67
71
* (optional) Add a new entry ``modules_auto_install_enabled `` to mark
68
72
a list of modules as auto installable. This feature can be usefull for companies
69
73
that are hosting a lot of Odoo instances for many customers, and want some modules
70
74
to be always installed.
75
+ The environment variable ``ODOO_MODULES_AUTO_INSTALL_ENABLED `` can also be set.
76
+
77
+ The values in the configuration file takes precedence over the environment variable
78
+ values.
71
79
72
80
**Typical Settings **
73
81
74
- .. code-block :: shell
82
+ .. code-block :: cfg
75
83
76
84
server_wide_modules = web,module_change_auto_install
77
85
@@ -86,6 +94,13 @@ Configuration
86
94
disable_odoo_online,
87
95
account_usability
88
96
97
+ When using environment variables, the same configuration is:
98
+
99
+ .. code-block :: shell
100
+
101
+ export ODOO_MODULES_AUTO_INSTALL_DISABLED=partner_autocomplete,iap,mail_bot
102
+ export ODOO_MODULES_AUTO_INSTALL_ENABLED=web_responsive:web,base_technical_features,disable_odoo_online,account_usability
103
+
89
104
Run your instance and check logs. Modules that has been altered should be present in your log, at the load of your instance:
90
105
91
106
.. code-block :: shell
@@ -99,7 +114,7 @@ Run your instance and check logs. Modules that has been altered should be presen
99
114
100
115
if your ``odoo.cfg `` file contains the following configuration:
101
116
102
- .. code-block :: shell
117
+ .. code-block :: cfg
103
118
104
119
modules_auto_install_enabled =
105
120
account_usability,
@@ -117,6 +132,13 @@ The behaviour will be the following:
117
132
118
133
* ``point_of_sale `` module will be installed as soon as ``sale `` and ``purchase `` module are installed.
119
134
135
+ When using environment variables, the same configuration is:
136
+
137
+ .. code-block :: shell
138
+
139
+ export ODOO_MODULES_AUTO_INSTALL_ENABLED=account_usability,web_responsive:web,base_technical_features:,point_of_sale:sale/purchase
140
+
141
+
120
142
Development
121
143
===========
122
144
@@ -130,7 +152,7 @@ Bug Tracker
130
152
131
153
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues >`_.
132
154
In case of trouble, please check there if your issue has already been reported.
133
- If you spotted it first, help us smashing it by providing a detailed and welcomed
155
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
134
156
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20module_change_auto_install%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** >`_.
135
157
136
158
Do not contact contributors directly about support or help with technical issues.
@@ -147,6 +169,9 @@ Contributors
147
169
~~~~~~~~~~~~
148
170
149
171
* Sylvain LE GAL <https://twitter.com/legalsylvain>
172
+ * XCG Consulting, part of `Orbeet <https://orbeet.io/ >`__:
173
+
174
+ * Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr>
150
175
151
176
Maintainers
152
177
~~~~~~~~~~~
0 commit comments