[FIX] incorrect handling of 'None of the following condition must match' advanced search combinator

Introduced during 'simple style fixes' (sic) of rev xmo@openerp.com-20110812094541-zeb5lz6nk0jgq21y

bzr revid: xmo@openerp.com-20120606143721-004xllr8j28sgga9
This commit is contained in:
Xavier Morel 2012-06-06 16:37:21 +02:00
commit cff511da83
1 changed files with 1 additions and 1 deletions

View File

@ -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);
},