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.0.tar.gz (2.8 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.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odoorecursiveaddons-0.2.0.tar.gz
  • Upload date:
  • Size: 2.8 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.0.tar.gz
Algorithm Hash digest
SHA256 b01df73f064a0158c5a872e7eabaf8330541d44c22889b6170287531aa1f358a
MD5 d4f6cdf6b3d195a9fcf67e9d2721ffec
BLAKE2b-256 4e6fea143ba3f236692f87875fa31583dcb9b45826031c771d5dc62852404cad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for odoorecursiveaddons-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be2bb0199472cef759f7f1b9bfb3444eb80e6b549dd5b897cc9af04129dd1097
MD5 e44e75a1d0a1cea4f362ebef6c707093
BLAKE2b-256 0be76e820979fd48ce23c71a3428c72d92e36e86bc3f8c2fa8549dac53c49ed0

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