Skip to main content

Offer only items on autocompletion that will yield results

Project description

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

When searching, the autocomplete options can be a bit frustrating because you will be offered choices that won’t yield a result. This addon searches for the term in the background and only offers an option if this search has a result.

Table of contents

Configuration

  • some searches (especially via function fields) can be very heavy on the server. To disable prefetching on a per field basis, set the option web_search_autocomplete_prefetch.disable:

    options="{'web_search_autocomplete_prefetch.disable': true}"

    on your field in the search view.

  • by default, the addon triggers a search 350 milliseconds after the last key press. If you want a different timeout, set the parameter web_search_autocomplete_prefetch.keypress_timeout to the amount of milliseconds you need as timeout.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Therp BV

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/web project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file odoo10_addon_web_search_autocomplete_prefetch-10.0.1.0.0.99.dev5-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo10_addon_web_search_autocomplete_prefetch-10.0.1.0.0.99.dev5-py2-none-any.whl
Algorithm Hash digest
SHA256 0d72f8b61fbc519e008fa6b5dbd9ef2bbe2b08d75be1c0749d80bdc609c36b05
MD5 ab64e032a0d46bb211095b3556f5699a
BLAKE2b-256 6812165e245d9b152617f36526d3de74755c89965139695dcc09284d5ccce187

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page