upgrade-js-legacy-widget (U1813)#
The legacy Widget is imported, removed in Odoo 18.0.
Applies to Odoo 18.0 and later.
What it does#
Reports imports of @web/legacy/js/core/widget.
Why is this bad?#
Odoo 18.0 removed the legacy Widget class: the module fails to load.
Rewrite the widget as an OWL component; on the website, publicWidget
remains until Odoo 20.0.