Skip to content

acsone/odoo-sort-manifest-depends

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages