upgrade-t-esc-t-raw (U2003)#
t-esc or t-raw, removed from QWeb in Odoo 20.0.
Applies to Odoo 20.0 and later.
What it does#
Reports t-esc and t-raw in templates, reports and views, and
<attribute name="t-esc">/<attribute name="t-raw"> in inheritance.
Why is this bad?#
Odoo 20.0 dropped both directives: in templates and reports they are
unknown and output nothing (a warning in the log), in kanban views the view
fails to install. t-out replaces both.
Fix safety#
t-esc becomes t-out: safe, both escape. t-raw becomes t-out, an
unsafe fix: t-out escapes a value that is not marked safe (Markup), so
HTML built as a plain string shows as text.