You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use community roles, you need to deploy this modules in the server. This role manage the modules deployment with `pip`.
234
+
To use Odoo modules (from OCA or custom modules), you need to deploy modules packages to the server. This role manages the modules deployment with `pip`.
235
+
In your inventory you can define up to two variables in order to add python packages to the target `requirements.txt` that will be generated.
235
236
236
-
You can define a `requirements.txt` file to manage the modules and ensure the version installed:
237
+
Define the `odoo_role_odoo_community_packages` variable to install packages not maintained by you. For example when you're deploying an Odoo instance that just requires OCA modules:
In some case you want to deploy different versions of the same module to different hosts.
249
+
A typical case is when you have developed a custom module and need to deploy a packaged version of it to production but in local development environment you need to install it es editable.
250
+
In this case you can define the `odoo_role_odoo_project_packages` variable:
> The default the `requirements.txt` file path is `"{{ inventory_dir }}/../files/requirements.txt"`.
263
+
For backward compatibility, the Ansible template will look first for a `files/requirements.txt` file in your inventory and use it as the source of the template.
264
+
If you have a `files/requirements.txt` file defined in your inventory, the two variables just described will not take any effect.
247
265
248
-
# Install
249
-
Once the modules are in the server, you need to install them in the database.
266
+
#### Install
267
+
Once the modules packages are installed in the server, you need to install them in the Odoo database.
250
268
251
-
Define a `odoo_role_odoo_community_modules` var with the list of the modules names you want to install.
269
+
Define a `odoo_role_odoo_community_modules` variable with the list of the modules names you want to install.
0 commit comments