Skip to main content

Expand addons_path recursively from Odoo configuration

Project description

OdooRecursiveAddons

This module enables recursive addon loading for odoo-bin, making it ideal for developers managing multiple projects, repositories, and modules across various directories. Instead of manually adding every path to the .conf file, developers can use a single recursive configuration option that automatically discovers all valid Odoo modules within nested folder structures.

Expand addons_path recursively from the Odoo configuration file.

Installation

pip install odoorecursiveaddons

Use in odoo-bin

from odoorecursiveaddons import expand_addons_path_recursive_from_config

if __name__ == "__main__":
    for path in expand_addons_path_recursive_from_config():
        if path not in odoo.addons.__path__:
            odoo.addons.__path__.append(path)
    odoo.cli.main()
    

Use in odoo.conf

[options]
addons_path_recursive = /route/to/addons

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

odoorecursiveaddons-0.2.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

odoorecursiveaddons-0.2.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file odoorecursiveaddons-0.2.2.tar.gz.

File metadata

  • Download URL: odoorecursiveaddons-0.2.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for odoorecursiveaddons-0.2.2.tar.gz
Algorithm Hash digest
SHA256 87339534910895798be7d547c5e8f9f157ee88ddcfbb58afe545453c92645380
MD5 f82ef84a816c7623ecbc9924940a9aee
BLAKE2b-256 ef58e17d098b005fbcf7bdb0c4efde0a5b9519a759397e0fc10c4ece57f416b0

See more details on using hashes here.

File details

Details for the file odoorecursiveaddons-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoorecursiveaddons-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1dbe8b954fbed0251f3e1f856bfea72ef8d22219294e03aacb551c169bc1516e
MD5 5a7d061d151fa01b4c8fd2b9e7fa746f
BLAKE2b-256 41cc0e81a9b68eef17c6198f0b9785fb9ad9166ab961842ab34da764a30f456d

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