module-icon (MOD012)#

The module has no icon, or an outdated one the configuration replaces.

What it does#

With [rules.module-icon] configured, reports an installable module without static/description/icon.png, and one whose icon is listed in replace. Every other icon is the module’s own and is left alone. Does nothing without the table:

[tool.odoo-lint.rules.module-icon]
icon = "tools/icons/company.png"
replace = ["oca-2015", "oca-2025-01", "sha256:0123...", "tools/icons/old.png"]

[tool.odoo-lint.rules.module-icon.paths]
"modules/client/**" = "tools/icons/client.png"

icon is the icon modules should have; paths sets another one for the modules under a glob (the longest that matches). replace lists outdated icons: oca-2015 (OCA’s grey cube) and oca-2025-01 (its first new logo), the SHA-256 of a file, or a file. Paths are relative to the configuration file.

Why is this bad?#

Odoo shows the icon in the Apps menu; without one it shows a generic placeholder, and an old icon shows a brand that is no longer used.

Fix safety#

Safe: odl check --fix copies the configured icon into the module. Editors do not offer it, as it is a file copy rather than a text edit. Without an icon for the module there is no fix.