Skip to content

manifest-author-string (ODE8101)

Preview (since 0.16.2.2) · Related issues · View source

Derived from the odoo linter.

Fix is sometimes available.

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

What it does

Checks that the author key in an Odoo module's __manifest__.py is a string.

Why is this bad?

Odoo expects author to be a single string of comma-separated author names, not a list.

Example

{
    "author": ["My Company"],
}

Use instead:

{
    "author": "My Company",
}

Fix safety

When the value is a list or tuple of plain string literals, the fix joins them into one comma-separated string, which is how Odoo reads the key. It is marked as unsafe because other tooling reading the manifest may expect the sequence. No fix is offered for any other value, or when an author name itself contains a comma, quote, or backslash.