summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/model_field_selector.js
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2019-01-07 12:27:28 +0000
committerMartin Geubelle <mge@odoo.com>2019-01-08 13:46:01 +0000
commitb4e9410f6a1922ff47ed9f2d38fe685ee4d57dbd (patch)
tree049b54e9fdd60e5e704eef17b20834f52cc1d1fe /addons/web/static/src/js/widgets/model_field_selector.js
parentfb693b65ff8a64addf8273a92cafdd52bb0e98f1 (diff)
[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
Diffstat (limited to 'addons/web/static/src/js/widgets/model_field_selector.js')
-rw-r--r--addons/web/static/src/js/widgets/model_field_selector.js6
1 files changed, 3 insertions, 3 deletions
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,