-
Vincent Hatakeyama authored
Includes: - adding options to docker_dev_start and docker_redner to make them work - running migrate, setting admin password, then serve - getting the api key and putting it in Odoo - displaying redner log when using docker_dev_start Clean up some unnecessary autocommit as the use of with will commit the transactions
Vincent Hatakeyama authoredIncludes: - adding options to docker_dev_start and docker_redner to make them work - running migrate, setting admin password, then serve - getting the api key and putting it in Odoo - displaying redner log when using docker_dev_start Clean up some unnecessary autocommit as the use of with will commit the transactions
Odoo Scripts
Installation
Most commands can be run directly or with the image build from Dockerfile
(xcgd/odoo_scripts) by indicating the command to run, but the best way to use this module is to install it. Installing will also install dependencies.
The recommend way to install this module is to run python3 -m pip install hg+https://orus.io/xcg/odoo_scripts#egg=odoo_scripts
.
Some scripts are in other sections, because they need some specialized library, in that case you need to indicate the name of section as in python3 -m pip install "hg+https://orus.io/xcg/odoo_scripts#egg=odoo_scripts[docker]"
.
The prerequisites for this module or one of its section can be installed by using pip3 or the package manager; the requirements are defined in setup.py
.
To upgrade Odoo scripts, just add --upgrade
to the end of the command.
It can also be cloned it before running python3 -m pip install .
in the clone directory.
Important
As there is no way of indicating sections (worse, it is handling them incorrectly), do not use python3 setup.py install
.
Note that shell scripts are not installed, as they are meant to be replaced with more easily maintanable python scripts.
Scripts
Those scripts are available when installing the package, and can also be run directly.
docker_black
Run dockerized black on provided directory. black must be present in the project image.
This is part of the docker section.
docker_isort
Run dockerized isort on current directory. This uses a configuration file that is adapted to OCA guidelines for imports.
This is part of the docker section.
docker_pylint
Run dockerized pylint on provided module name. Pylint must be present in the project image.
This is part of the docker section.
docker_prettier
Run dockerized prettier on provided directory. prettier must be present in the project image.
This is part of the docker section.