From ba82155b8a52ead7ef6be44187526894553b27a8 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 28 Sep 2022 18:57:14 +0000 Subject: [PATCH] [IMP] web: add legacy view logging in debug mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This helps tracking views that still need to be converted, like we already do for fields. closes odoo/odoo#101676 X-original-commit: aea1b4af1d88b19392eb9f42a42fd970017d5630 Signed-off-by: Géry Debongnie Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/legacy/legacy_views.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web/static/src/legacy/legacy_views.js b/addons/web/static/src/legacy/legacy_views.js index 415bcff1f0d..51d3e7f1a33 100644 --- a/addons/web/static/src/legacy/legacy_views.js +++ b/addons/web/static/src/legacy/legacy_views.js @@ -174,6 +174,9 @@ function registerView(name, LegacyView) { Controller, }; viewRegistry.add(name, legacyView); + if (odoo.debug) { + console.log(`Views: using legacy view: ${name}`); + } } // register views already in the legacy registry, and listens to future registrations