manifest-version-format (C8106)#
The manifest version does not follow <odoo series>.x.y.z.
What it does#
Checks that the manifest version is the Odoo series followed by three
numbers, such as 17.0.1.0.0.
Why is this bad?#
Odoo and the OCA tooling derive the module’s Odoo series and its migration
scripts from this version. A version such as 1.0 makes upgrades unreliable.
Configuration#
[tool.odoo-lint.rules.manifest-version-format]
# Series accepted as the first part; default: every Odoo series
valid-odoo-versions = ["17.0"]
# Regex the version must match from the start
format = '({valid_odoo_versions})\.\d+\.\d+\.\d+$'
Set valid-odoo-versions to the series of your branch to also catch modules
that were not migrated.