Skip to content

Manifest

Experimental

These commands are experimental. The rule set, options, and output format may change in future releases.


Lint and auto-fix Odoo manifest files.

Modules:

Name Description
check

[EXPERIMENTAL] Check all Odoo manifest files against the oops lint rules.

common
fix

[EXPERIMENTAL] Apply autofixes to Odoo manifest files.


oops manifest check

[EXPERIMENTAL] Check all Odoo manifest files against the oops lint rules.

Scans the repository for manifest.py files and runs the rules defined in oops.rules.manifest (author/maintainers, key order). Reports violations and exits non-zero if any are found.

Accepts either addon names (CLI) or file paths (pre-commit hook). When run without arguments, all owned installable addons are checked.

Use oops-man-fix to apply autofixes.

Usage:

oops manifest check [OPTIONS] [INPUTS]...

Options:

Name Type Description Default
--diff boolean Show the autofix diff alongside each violation. False
--help boolean Show this message and exit. False

Examples:

Check all manifests in the repository:

oops manifest check

Check specific addons by name:

oops manifest check sale_custom purchase_custom

Check from a directory (resolves the manifest automatically):

oops manifest check path/to/sale_custom

Show the suggested fix diff alongside each violation:

oops manifest check --diff

oops manifest fix

[EXPERIMENTAL] Apply autofixes to Odoo manifest files.

Scans the repository for manifest.py files and applies all autofixable rules from oops.rules.manifest in place (author/maintainers, key order). Reports how many files were modified.

Use oops-man-check to preview violations without modifying files.

Usage:

oops manifest fix [OPTIONS]

Options:

Name Type Description Default
--names text Comma-separated list of addon names to fix. None
--no-commit boolean Do not commit changes False
--help boolean Show this message and exit. False

Examples:

Fix all manifests in the repository:

oops manifest fix

Fix specific addons only:

oops manifest fix --names sale_custom,purchase_custom

Preview fixes without committing:

oops manifest fix --no-commit