Odoo Tools
Project description
Odoo Tools
A library that provide command line tools to manage an Odoo environment. The main purpose of the library is to provide a programmatic API that lets you build tools to automate management of odoo environment.
How to install
pip install odoo-tools
Documentation
You can check the documentation hosted here.
Example of use
It can be used to find modules in addons paths. It can be used to discover addons paths in directory in a way to provide an easy way to manage odoo.cfg files without having to break your head managing things.
For example remove all modules that can't be installed in every configured addons paths:
env = Environment()
for module in env.modules.list(filters={'non_installable'}):
module.remove()
Define addons paths based on paths in /var/lib/addons:
env = Environment()
env.context.custom_paths.add(Path("/var/lib/addons"))
env.set_config('addons_path', env.addons_paths())
This will not simply add /var/lib/addons
to the addons_path
. It
will search into this folder for directories that have installable
addons in them. addons_paths()
returns all possible addons paths
detected based on the environment variables, odoorc file and actual
state of the environment. So it returns everything you need to start
odoo later.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file odoo-tools-0.1.9.tar.gz
.
File metadata
- Download URL: odoo-tools-0.1.9.tar.gz
- Upload date:
- Size: 121.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2836d292b09e2e81d5ef7fddbb9c78a42aa47e5a9c36bd8967e9b111144b2da |
|
MD5 | 93bcece4f300f050fd119afdb0e669b1 |
|
BLAKE2b-256 | 874a1d81c5db7833ba7520c74257c8598a4d4896ab20db4c2b79fa1b584d52b8 |
File details
Details for the file odoo_tools-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: odoo_tools-0.1.9-py3-none-any.whl
- Upload date:
- Size: 159.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2105d047c82a9ba3afdd6b9d30875db09c8e189d8de64c9877755ff60695e4c5 |
|
MD5 | e900d04e7e7d1bca213ebafab79b4ae5 |
|
BLAKE2b-256 | 0fa9dd007ec22ed4db17f0c309de9598428ae3c1223dd5e550713489136e24eb |