Skip to content

license-allowed (ODOO010)

Preview (since 0.16.2.2) · 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 the license key in an Odoo module's __manifest__.py is one of the commonly-accepted OSI/OCA license identifiers.

Why is this bad?

An unrecognized license string usually indicates a typo, and tooling that reads the manifest (including Odoo itself) won't recognize it.

Example

{
    "license": "GPL",
}