xml-field-numeric-without-eval (XML024)#
A numeric field is set as text instead of with eval.
What it does#
Reports <field name="sequence">10</field> and the like for common numeric
fields.
Why is this bad?#
eval states that the value is a number instead of relying on a conversion
from text. Use <field name="sequence" eval="10" />.
Fix safety#
Safe: the field gets the same value.
Opt-in#
ALL does not include this check: Odoo reads the number either way, and
OCA’s CI does not run it. Enable it with select = ["ALL", "XML024"].