Skip to main content

Odoo Tools

Reason this release was yanked:

Modules in overlays and app.mixins are missing.

Project description

Odoo Tools

Python package codecov

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odoo-tools-0.1.6.tar.gz (97.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoo_tools-0.1.6-py3-none-any.whl (125.6 kB view details)

Uploaded Python 3

File details

Details for the file odoo-tools-0.1.6.tar.gz.

File metadata

  • Download URL: odoo-tools-0.1.6.tar.gz
  • Upload date:
  • Size: 97.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for odoo-tools-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9db3137ed14bd4c6c3415e9142c3cc91fa36e687f3ef7c6830b119e5226f1d0a
MD5 afc97fdce268a6d928604823c0bfea12
BLAKE2b-256 cf687db844c6df4f313948cc29d372af78fc2aa5d220247060034ec0e73a7c87

See more details on using hashes here.

File details

Details for the file odoo_tools-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: odoo_tools-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 125.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for odoo_tools-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5f7d53d689eb1f56882089fb3fc8721c93281cc7fb5e8d47a745c67a3d5fe504
MD5 edb275c63b1390aa1d2479e436b02db9
BLAKE2b-256 f2d34f4c3a364ae4f28fe3802bcad456add2c3b19a29e4269fea6b1795e09eca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page