forked from Techsystech/web
[FIX] web_m2x_options: quick search filter only if search value
Before this commit, an empty filter was applied when opening the search more if nothing in the quick search.14.0
parent
ad96577211
commit
4fef34d9cc
|
@ -258,6 +258,7 @@ odoo.define("web_m2x_options.web_m2x_options", function(require) {
|
|||
var ids = _.map(results, function(x) {
|
||||
return x[0];
|
||||
});
|
||||
if (search_val) {
|
||||
dynamicFilters = [
|
||||
{
|
||||
description: _.str.sprintf(
|
||||
|
@ -267,6 +268,9 @@ odoo.define("web_m2x_options.web_m2x_options", function(require) {
|
|||
domain: [["id", "in", ids]],
|
||||
},
|
||||
];
|
||||
} else {
|
||||
dynamicFilters = [];
|
||||
}
|
||||
}
|
||||
self._searchCreatePopup(
|
||||
"search",
|
||||
|
|
Loading…
Reference in New Issue