diff options
| author | Martin Geubelle <mge@odoo.com> | 2018-10-01 13:43:45 +0000 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2018-10-15 11:59:33 +0000 |
| commit | 70560d1f11074f755a8cd67e56212a61e789deb9 (patch) | |
| tree | fde46b28dc512efd21d3e62f233be8c62fa0ceef /addons/web/static/src/xml/base.xml | |
| parent | 9e3583fc8749387fc4f9f794c6d35f44acc2eac9 (diff) | |
[IMP] web: add `showSearchInput` option on ModelFieldSelector
The option `showSearchInput` has been added on the ModelFieldSelector to allow
the user to easily filter the displayed fields. An input is displayed in the
popover title.
The search method is fuzzy for optimal results.
closes odoo/odoo#27788
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 1eef5047f46..ac9aa1207e4 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -741,12 +741,15 @@ <i class="fa fa-arrow-left o_field_selector_popover_option o_field_selector_prev_page" title="Previous" role="img" aria-label="Previous"/> <div class="o_field_selector_title"/> <i class="fa fa-times o_field_selector_popover_option o_field_selector_close" title="Close" role="img" aria-label="Close"/> + <div t-if="widget.options.showSearchInput" class="o_field_selector_search"> + <input type="text" class="o_input"/> + </div> </div> <div class="o_field_selector_popover_body"> <ul class="o_field_selector_page"/> </div> <div t-if="widget.options.debugMode" class="o_field_selector_popover_footer"> - <input type="text" class="o_input"/> + <input type="text" class="o_input o_field_selector_debug"/> </div> </div> </div> |
