xml-deprecated-qweb-directive-15 (XML013)#

A template uses t-esc or t-raw, deprecated in Odoo 15.0.

Applies to Odoo 15.0 and later.

What it does#

Reports t-esc and t-raw in templates of modules for Odoo 15.0 and later.

Why is this bad?#

Odoo 15.0 replaced both by t-out, which escapes text and leaves Markup alone. See odoo/odoo#70004.

Fix safety#

t-esc to t-out is safe. t-raw to t-out is unsafe: t-out escapes plain strings that t-raw printed as HTML, so wrap such values in Markup. There is no fix when the element already has t-out.