Skip to main content

Sort modules dependencies section in odoo addon's manifest

Project description

odoo-sort-manifest-depends

Table of Contents

Help

Usage: odoo-sort-manifest-depends [OPTIONS]

  Sort modules dependencies section in odoo addons manifests and group them by
  type (Third-party, Odoo Community, Odoo Enterprise, Local) and module
  category.

Options:
  --local-addons-dir DIRECTORY  Directory containing manifests to sort
                                [required]
  --odoo-version TEXT           Project's Odoo version (e.g. 16.0)  [required]
  --project-name TEXT           Name of the project, will be the name of
                                category of local addons (default: Local)
  --oca-category                Add category for third party addons coming from OCA
  --reset-cache                 Purge cache used to identify OCA addons
  --help                        Show this message and exit.

Using from the command line

This project is distributed on PyPI. The recommended way to run it is with pipx, with a command like this:

pipx run odoo-sort-manifest-depends --local-addons-dir=odoo/addons --odoo-version=16.0

Using with pre-commit

This project may be used as a pre-commit hook, with an entry like this in .pre-commit-config.yml.

  - repo: https://github.com/acsone/odoo-sort-manifest-depends
    rev: v1.x  # see the release page https://github.com/acsone/odoo-sort-manifest-depends/releases
    hooks:
      - id: odoo-sort-manifest-depends
        args:
          [
            --local-addons-dir=./odoo/addons/,
            --odoo-version=16.0,
            --project-name=MyProject,
          ]

Credits

License

odoo-sort-manifest-depends is distributed under the terms of the MIT license.

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_sort_manifest_depends-1.4.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

odoo_sort_manifest_depends-1.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file odoo_sort_manifest_depends-1.4.tar.gz.

File metadata

File hashes

Hashes for odoo_sort_manifest_depends-1.4.tar.gz
Algorithm Hash digest
SHA256 15e9905890fc4615e521ceabf9a8fb05de48d316e5d474ef5e06e5b0491f3462
MD5 3be843d27cc9f1bd41fc82640570f750
BLAKE2b-256 7662a6fdfb2a8b530df7f731b4a55a0dbe173bcccf0ee3cba39406febc4f3f23

See more details on using hashes here.

File details

Details for the file odoo_sort_manifest_depends-1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_sort_manifest_depends-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 04451ef9dcf5808282800ffe25e2a19d70f8341163849562029de9c802e0a7e6
MD5 fcd3dac370f7d8bb43bb92df828b5804
BLAKE2b-256 d2649d9386c805167501c74fd53d037110dc7ad1789d826f24c252c16bf4c635

See more details on using hashes here.

Supported by

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