Compare commits

...

1 Commits

Author SHA1 Message Date
Julien Castiaux
b8618e6643 [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.

X-original-commit: 3d2f067e6c
2022-06-10 18:08:04 +02:00

View File

@@ -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 <odoo-bin --init>`: install some modules before running the server (comma separated list)
* :option:`-u <odoo-bin --update>`: update some modules before running the server (comma separated list)
Log in to Odoo