[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) <aab@odoo.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user