Skip to content
Snippets Groups Projects
Commit 494a2b26 authored by David Monjoie's avatar David Monjoie
Browse files

[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: default avatarAaron Bohy (aab) <aab@odoo.com>
parent a7649a3d
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment