Odoo Tools#
Overview#
This library came to light while developing entrypoints for self configuring docker image. Some of the initial functions were to search for odoo addons paths and search for files like requirements.txt and apt-package.txt to install python libraries the same way OdooSH does.
Then internally, some continuous integration tools shared a lot of those functions that were initially duplicated in both projects. Eventually, it became obvious that it would be easier to have a single library that could be used by both projects.
Then more things were added like the capacity to modify manifest files programmatically, a shell using ptpython to quickly enter a python shell with a properly setup odoo environment, entrypoints from the docker image, db api to initialize or manage an existing database, translation tools to generate po and pot files.
This library can be used as is with the available command lines to manage things manually, but its real purpose is to be used in an automated environment.
And one thing that’s particular is that this library doesn’t require odoo to function for most things. You can use it to actually install odoo since odoo doesn’t provide easily installable pypi packages unfortunately.
- Guides
- Command line utilities
- Environment Variables
EnvironmentVariable
EnvironmentVariables
EnvironmentVariables.ALLOW_DANGEROUS_SETTINGS
EnvironmentVariables.APT_INSTALL_RECOMMENDS
EnvironmentVariables.DEPLOYMENT_AREA
EnvironmentVariables.MASTER_PASSWORD
EnvironmentVariables.ODOO_BASE_PATH
EnvironmentVariables.ODOO_DISABLED_MODULES
EnvironmentVariables.ODOO_EXCLUDED_PATHS
EnvironmentVariables.ODOO_EXTRA_APT_PACKAGES
EnvironmentVariables.ODOO_EXTRA_PATHS
EnvironmentVariables.ODOO_RC
EnvironmentVariables.ODOO_REQUIREMENTS_FILE
EnvironmentVariables.ODOO_STRICT_MODE
EnvironmentVariables.ODOO_VERSION
EnvironmentVariables.PACKAGE_MAP_FILE
EnvironmentVariables.REQUIREMENTS_FILE_PATH
EnvironmentVariables.RESET_ACCESS_RIGHTS
EnvironmentVariables.SHOW_MASTER_PASSWORD
EnvironmentVariables.SKIP_PIP
EnvironmentVariables.SKIP_POSTGRES_WAIT
EnvironmentVariables.SKIP_SUDO_ENTRYPOINT
EnvironmentVariables.USE_ODOO_LOGGER
EnvironmentVariables.fields()
EnvironmentVariables.values()
StoredBoolEnv
StoredEnv
StoredSetEnv
- References