From 97b7bdfd5e3b0be7985a2d7520875053f4d8be94 Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Fri, 10 Jun 2022 14:12:31 +0000 Subject: [PATCH] [IMP] rdtraining: tip about -i/-u for odoo-bin It is never shown to the trainee that he can install/update a module right from the CLI. Multiple developpers still use the app manager to install/update their modules multiple months into the job. closes odoo/documentation#2185 X-original-commit: 3d2f067e6ce7de359e64168fa3e33b6df48f3c35 Signed-off-by: Victor Feyens (vfe) Signed-off-by: Julien Castiaux --- .../developer/howtos/rdtraining/02_setup.rst | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/content/developer/howtos/rdtraining/02_setup.rst b/content/developer/howtos/rdtraining/02_setup.rst index f7ae7ddb2..bbbc044ad 100644 --- a/content/developer/howtos/rdtraining/02_setup.rst +++ b/content/developer/howtos/rdtraining/02_setup.rst @@ -276,17 +276,22 @@ The last two can be used to prevent the worker from being killed when debugging .. tip:: You may face an error similar to `AttributeError: module '$MODULE_NAME' has no attribute '$ATTRIBUTE'` - In this case you may need to re-install the module with `$ pip install --upgrade --force-reinstall $MODULE_NAME` + In this case you may need to re-install the module with `$ pip install --upgrade --force-reinstall $MODULE_NAME` - If this error occurs with more than one module then you may need to re-install all the - requirements with `$ pip3 install --upgrade --force-reinstall -r requirements.txt` + If this error occurs with more than one module then you may need to re-install all the + requirements with `$ pip3 install --upgrade --force-reinstall -r requirements.txt` - You can also clear the python cache to solve the issue + You can also clear the python cache to solve the issue - .. code-block:: console + .. code-block:: console - $ cd $HOME/.local/lib/python3.8/site-packages/ - $ find -name '*.pyc' -type f -delete + $ cd $HOME/.local/lib/python3.8/site-packages/ + $ find -name '*.pyc' -type f -delete + +.. tip:: Other commonly used arguments are: + + * :option:`-i `: install some modules before running the server (comma separated list) + * :option:`-u `: update some modules before running the server (comma separated list) Log in to Odoo