[FIX] handling of invisible attribute in search view

bzr revid: xmo@openerp.com-20111024152612-3mh7nj8k8g5gcsp9
This commit is contained in:
Xavier Morel 2011-10-24 17:26:12 +02:00
commit d9c03065fd
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ openerp.web.SearchView = openerp.web.Widget.extend(/** @lends openerp.web.Search
rows.push(row);
var filters = [];
_.each(items, function (item) {
if (item.attrs.invisible === '1') { return; }
if (filters.length && item.tag !== 'filter') {
row.push(
new openerp.web.search.FilterGroup(