diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index 85dca8a91e3..13530ae3f89 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -1193,7 +1193,7 @@ openerp.web.search.ExtendedSearchGroup = openerp.web.OldWidget.extend({ }).compact().value(); var choice = this.$element.find(".searchview_extended_group_choice").val(); var op = choice == "all" ? "&" : "|"; - return choice == "none" ? ['!'] : [].concat( + return (choice == "none" ? ['!'] : []).concat( _.map(_.range(_.max([0,props.length - 1])), function() { return op; }), props); },