mirror of https://github.com/OCA/web.git
commit
742cc34e66
|
@ -258,6 +258,7 @@ odoo.define("web_m2x_options.web_m2x_options", function(require) {
|
||||||
var ids = _.map(results, function(x) {
|
var ids = _.map(results, function(x) {
|
||||||
return x[0];
|
return x[0];
|
||||||
});
|
});
|
||||||
|
if (search_val) {
|
||||||
dynamicFilters = [
|
dynamicFilters = [
|
||||||
{
|
{
|
||||||
description: _.str.sprintf(
|
description: _.str.sprintf(
|
||||||
|
@ -267,6 +268,9 @@ odoo.define("web_m2x_options.web_m2x_options", function(require) {
|
||||||
domain: [["id", "in", ids]],
|
domain: [["id", "in", ids]],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
} else {
|
||||||
|
dynamicFilters = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
self._searchCreatePopup(
|
self._searchCreatePopup(
|
||||||
"search",
|
"search",
|
||||||
|
|
Loading…
Reference in New Issue