renamed-field-parameter (W8111)#

A field uses a parameter that was renamed.

What it does#

Reports field parameters that Odoo renamed: digits_compute (now digits) and select (now index).

Why is this bad?#

The old names are ignored, so the field silently loses its precision or index.

Configuration#

[tool.odoo-lint.rules.renamed-field-parameter]
parameters = { digits_compute = "digits", select = "index" }

Fix safety#

select to index is safe. Other renames, such as digits_compute to digits, are unsafe: the new parameter may expect another kind of value. There is no fix when the new parameter is already set.