diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-03-09 15:21:56 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 9fb1228b6ce0dd254c8dd88c7beff65579301af9 (patch) | |
| tree | 719136c2ca64d86a7c0335fd44534e9c63b68ee6 /addons/web/static/src/js/views/abstract_controller.js | |
| parent | 2d2e9c93c393c06c4d099023a857823cffb96935 (diff) | |
[FIX] web: don't display nocontent helper if no help message
Without help message, it looks silly
Diffstat (limited to 'addons/web/static/src/js/views/abstract_controller.js')
| -rw-r--r-- | addons/web/static/src/js/views/abstract_controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/abstract_controller.js b/addons/web/static/src/js/views/abstract_controller.js index b90b1448ce2..3d9db03eb1c 100644 --- a/addons/web/static/src/js/views/abstract_controller.js +++ b/addons/web/static/src/js/views/abstract_controller.js @@ -210,7 +210,7 @@ var AbstractController = Widget.extend({ * @param {boolean} hasNoContent */ _toggleNoContentHelper: function (hasNoContent) { - if (hasNoContent) { + if (hasNoContent && this.noContentHelp) { this.renderer.$el.detach(); var $msg = $('<div>') .addClass('oe_view_nocontent') |
