diff --git a/web_advanced_search/static/src/js/web_advanced_search.js b/web_advanced_search/static/src/js/web_advanced_search.js index 963986a4..9d16135c 100644 --- a/web_advanced_search/static/src/js/web_advanced_search.js +++ b/web_advanced_search/static/src/js/web_advanced_search.js @@ -179,7 +179,14 @@ odoo.define("web_advanced_search", function (require) { }, }; // See https://stackoverflow.com/a/11508530/1468388 - params.fields[this.field.name] = _.omit(this.field, "onChange"); + // to know how to include this in the previous step in ES6 + params.fields[this.field.name] = _.omit( + this.field, + // User needs all records, to actually produce a new domain + "domain", + // Onchanges make no sense in this context, there's no record + "onChange" + ); if (this.field.type.endsWith("2many")) { // X2many fields behave like m2o in the search context params.fields[this.field.name].type = "many2one";