manifest-version-format (ODOO064)
Preview (since 0.16.2.13) · 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 version key in an Odoo module's manifest is a five-part version whose
first two parts are the Odoo series, e.g. 17.0.1.0.0.
Why is this bad?
Odoo's module updater compares manifest versions to decide whether a module has to be
upgraded, and the Apps store rejects modules whose version does not start with the series
it is published for. A version like 1.0 or 17.0.1.0 is silently treated as a different
(usually lower) version than intended, so upgrades stop being applied.
Example
Use instead:
Options
When odoo-version is configured, the first two parts must match it exactly. Without it
the series is not known, so any five numeric parts are accepted.