Skip to content

manifest-required-key (ODOO001)

Preview (since 0.16.2.1) · Related issues · View source

Derived from the odoo linter.

This rule is unstable and in preview. The --preview flag is required for use.

What it does

Checks that an Odoo module's __manifest__.py declares a license key.

Why is this bad?

Odoo uses the license manifest key to determine how a module may be redistributed. Without it, downstream tooling (and users) can't tell under what terms the module is available.

Example

{
    "name": "My Module",
}

Use instead:

{
    "name": "My Module",
    "license": "LGPL-3",
}