From b4e9410f6a1922ff47ed9f2d38fe685ee4d57dbd Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Mon, 7 Jan 2019 12:27:28 +0000 Subject: [IMP] web: use `showSearchInput` in model field selector The option `showSearchInput`, which is used on the model field selector to display a search input that filters the displayed fields, is not set by default. This includes the model field selector instantiated in the `domain` field widget. closes odoo/odoo#29986 --- addons/web/static/src/js/widgets/model_field_selector.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/js/widgets/model_field_selector.js b/addons/web/static/src/js/widgets/model_field_selector.js index eaff737b673..b8c953a2d0e 100644 --- a/addons/web/static/src/js/widgets/model_field_selector.js +++ b/addons/web/static/src/js/widgets/model_field_selector.js @@ -71,8 +71,8 @@ var ModelFieldSelector = Widget.extend({ * the fields itself) * @param {boolean|function} [options.followRelations=true] * true if can follow relation when building the chain - * @param {boolean} [options.showSearchInput=false] - * true to show a search input to filter displayed fields + * @param {boolean} [options.showSearchInput=true] + * false to hide a search input to filter displayed fields * @param {boolean} [options.debugMode=false] * true if the widget is in debug mode, false otherwise */ @@ -89,7 +89,7 @@ var ModelFieldSelector = Widget.extend({ filter: function () {return true;}, followRelations: true, debugMode: false, - showSearchInput: false, + showSearchInput: true, }, options || {}); this.options.filters = _.extend({ searchable: true, -- cgit v1.2.3