upgrade-view-qweb-directives (U1708)#
A view uses a QWeb directive Odoo 17.0 forbids in views.
Applies to Odoo 17.0 and later.
What it does#
Reports QWeb directives that Odoo 17.0 no longer accepts in view archs:
in kanban views anything but t-name, t-esc, t-out, t-set,
t-value, t-if/t-elif/t-else, t-foreach/t-as, t-key,
t-att*, t-call, t-debug and t-translation (such as t-raw,
t-on-*, t-ref), and in other views anything but t-translation.
Why is this bad?#
The view fails to install: “Forbidden owl directive used in arch”.
Fix safety#
t-raw becomes t-out, an unsafe fix: t-out escapes a value that is
not marked safe HTML. Other directives need a person.