upgrade-html-field-type (U1602)#
body_html of a mail template loaded with type="xml", deprecated in Odoo 16.0.
Applies to Odoo 16.0 and later.
What it does#
Reports <field name="body_html" type="xml"> in mail.template records.
Why is this bad?#
Odoo 16.0 serialises HTML fields as HTML and warns about type="xml"
(“HTML field is declared as type=xml”): self-closing tags such as <br/>
and empty elements can come out differently.
Fix safety#
Safe: the type becomes html.