diff options
| author | David Monjoie <dmo@odoo.com> | 2019-03-15 14:08:21 +0000 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2019-03-15 14:08:21 +0000 |
| commit | 31983e0c2e6a307032f6836107b162c4eefbed1b (patch) | |
| tree | 3c6efb4b92c420a6e38e6c84014d3219953bd6a2 /addons/web/static/src | |
| parent | 9a8f59a674c8e545cdf653e6144dad565db86da3 (diff) | |
[IMP] web: only display missing view erorr in debug assets
This error is there to help developpers realize their view has not
been loaded due to an error.
However, we have cases where we define actions containing views
that only exist in Enterprise to avoid creating an entire bridge
module just to add one view to an action.
The error was triggered in this case which resulted in a red build
for the click all runbot test, even though this was not really a
true error, as it was intended.
This commit changes the error to only appear in debug=assets such
that it will no longer put the click all runbot tour red while
still providing help for the developper trying to debug his view
since he will need to be in debug=assets to debug his view anyway.
closes odoo/odoo#31884
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/chrome/action_manager_act_window.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 8d13f4d9679..ad5749a16b7 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 @@ -358,7 +358,7 @@ ActionManager.include({ viewID: view[0], Widget: View, }); - } else { + } else if (config.debug === 'assets') { console.error("View type '" + viewType + "' is not present in the view registry."); } }); |
