[FIX] filter name fallback if there is no string on the filter

bzr revid: xmo@openerp.com-20120430150613-ifvar5ncjtakzpki
This commit is contained in:
Xavier Morel 2012-04-30 17:06:13 +02:00
parent 8be95a5549
commit 7064a5b85e
1 changed files with 4 additions and 1 deletions

View File

@ -900,7 +900,10 @@ instance.web.search.FilterGroup = instance.web.search.Input.extend(/** @lends in
this.view.query.toggle({
category: _t("Filter"),
field: this,
values: [{label: filter.attrs.string, value: filter}]
values: [{
label: filter.attrs.string || filter.attrs.name,
value: filter
}]
});
}
});