Skip to content

category-allowed-app (OAPP001)

Preview (since 0.16.2.10) · Related issues · View source

Derived from the odoo-app linter.

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

What it does

Checks that the category in the __manifest__.py of an Odoo module with a price key (a paid app) is one of the categories listed on the Odoo Apps store.

Why is this bad?

Paid apps are published on apps.odoo.com, which organizes modules by a fixed set of categories. A category outside that set won't match any store section, making the app harder to find.

Example

{
    "name": "My App",
    "price": 100,
    "category": "My Custom Category",
}

Use instead:

{
    "name": "My App",
    "price": 100,
    "category": "Sales",
}