[IMP] clear search after deselecting a filter

bzr revid: xmo@openerp.com-20120126085636-3mja4a43yhywd6ga
This commit is contained in:
Xavier Morel 2012-01-26 09:56:36 +01:00
parent a01106ca30
commit 1059bb758d
2 changed files with 3 additions and 1 deletions

View File

@ -252,6 +252,8 @@ openerp.web.SearchView = openerp.web.OldWidget.extend(/** @lends openerp.web.Sea
]
});
break;
case '':
this.do_clear();
}
if (val.slice(0, 4) == "get:") {
val = val.slice(4);

View File

@ -1213,7 +1213,7 @@
</form>
</t>
<t t-name="SearchView.managed-filters">
<option class="oe-filters-title">Filters</option>
<option class="oe-filters-title" value="">Filters</option>
<optgroup label="-- Filters --">
<t t-foreach="filters" t-as="filter">
<option t-attf-value="get:#{filter_index}"><t t-esc="filter.name"/></option>