Compare commits

...

2 Commits

Author SHA1 Message Date
Julien Castiaux
0cc2bc6419 [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.
2022-06-10 16:53:03 +02:00
Antoine Vandevenne (anv)
15273a0d42 [FIX] requirements: pin docutils to 0.16.0
Since sphinx-tabs 3.2.0 has the requirement docutils==0.16.0 and sphinx
3.5.4 has the requirement docutils>=0.12,<0.17, this commit pins
docutils to version 0.16.0.

While we're at it, the dependency to sphinx-tabs is also explicitly
listed, although it was already imported in the extensions. It causes
no trouble to install it from pip alongside the imported extension.

closes odoo/documentation#2170

X-original-commit: 5471d9a2ff
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-09 15:58:02 +02:00
2 changed files with 14 additions and 7 deletions

View File

@@ -279,17 +279,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

View File

@@ -1,6 +1,8 @@
docutils==0.16.0 # Compatibility with sphinx-tabs 3.2.0.
jinja2<3.1 # Compatibility with Sphinx 3.5.4.
pygments~=2.6.1
pygments-csv-lexer~=0.1
pysass~=0.1.0
sphinx~=3.0
sphinx-tabs==3.2.0
werkzeug==0.14.1