Skip to main content

Create the ultimate Odoo addons_path constructor

Project description

odoo-addons-path

A tool to auto-detect and construct Odoo addons_path for various project layouts.

Install

pip install odoo-addons-path

Quick start

As a CLI tool

odoo-addons-path /path/to/your/odoo/project

Example: This will find addon directories that inside '18.0' directories

odoo-addons-path --addons-dir "./tests/data/repo-version-module/*/18.0"

Example: List of repo directories

odoo-addons-path --verbose --addons-dir "./tests/data/c2c-new/odoo/external-src/, ./tests/data/c2c/odoo/external-src/"

Note: The path to the codebase can also be set via the CODEBASE environment variable.

As a library

from pathlib import Path
from odoo_addons_path import get_addons_path

addons_path = get_addons_path(Path("/path/to/your/odoo/project"))
print(addons_path)

Codebase layouts supported

There are several out-of-the-box supported layouts:

  • c2c
  • doodba
  • odoo.sh
  • trobz

For more details on the layouts, please refer to the tests/data/ directory.

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_addons_path-1.0.0.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

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

odoo_addons_path-1.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file odoo_addons_path-1.0.0.tar.gz.

File metadata

  • Download URL: odoo_addons_path-1.0.0.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for odoo_addons_path-1.0.0.tar.gz
Algorithm Hash digest
SHA256 003f072a154dd067e3ec024b5c594c7e9c6a881d18ced5d5ce939795af1e3d1d
MD5 d0ad403d6e6e334daaba51b51fe29fc1
BLAKE2b-256 44a16d2e73ee2ebc2b9ab2bc388d986566551991598686fc4d2c7247cf1345df

See more details on using hashes here.

Provenance

The following attestation bundles were made for odoo_addons_path-1.0.0.tar.gz:

Publisher: on-release-main.yml on trobz/odoo-addons-path

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file odoo_addons_path-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addons_path-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b9cdced11729e118e2785492ce25bf5eb0bc99854be6620548a7907c304f338
MD5 6c99078524db4f0ee5ce707d1510ebcf
BLAKE2b-256 5147fe528f134576e35203df4ca96c11c7afc254f4ae2471571ccf895b5438d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for odoo_addons_path-1.0.0-py3-none-any.whl:

Publisher: on-release-main.yml on trobz/odoo-addons-path

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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