From 494a2b2675d9a4b203fba42d31ef0950b9b01bd9 Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Mon, 3 Jun 2019 08:01:45 +0000 Subject: [PATCH] [FIX] web: log missing view warning rather than error The point of this warning is to help a view developer realize that his view is not loaded at all. However, console 'error' and 'warn' are observed by the runbot clickall tour as meaningful errors regarding a build resulting status. It makes sense, but it is an issue for community modules which have a gantt view that only exists in Enterprise. We don't want to create a bridge module for each and every module which uses a view that only exists in Enterprise, so we need to live with this warning. Since its purpose is for developers only, they can read the log and notice the error even if we use console.log rather than console.error, and that will not alter the result of the runbot clickall tour. closes odoo/odoo#33814 Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/js/chrome/action_manager_act_window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/chrome/action_manager_act_window.js b/addons/web/static/src/js/chrome/action_manager_act_window.js index 91b3cc7248c..8b3ff339ded 100644 --- a/addons/web/static/src/js/chrome/action_manager_act_window.js +++ b/addons/web/static/src/js/chrome/action_manager_act_window.js @@ -362,7 +362,7 @@ ActionManager.include({ Widget: View, }); } else { - console.error("View type '" + viewType + "' is not present in the view registry."); + console.log("View type '" + viewType + "' is not present in the view registry."); } }); return views;