[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:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user