[FIX] Fixed in advance search when search on 'None of the following condition must match'.

bzr revid: cpa@tinyerp.com-20120605055415-xgczrlyzb1g92exx
This commit is contained in:
cpa-openerp
2012-06-05 11:24:15 +05:30
parent f5404ed23c
commit 817c495816
+1 -1
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);
},