3
0
Fork 0
web_techsystech/web_search_autocomplete_pre...
oca-travis 2552ccf8e4 [UPD] Update web_search_autocomplete_prefetch.pot 2018-06-24 01:30:03 +00:00
..
i18n [UPD] Update web_search_autocomplete_prefetch.pot 2018-06-24 01:30:03 +00:00
images [ADD] web_search_autocomplete_prefetch 2015-12-09 21:30:36 +01:00
static [ADD] make prefetch timeout configurable 2017-05-05 12:05:02 +02:00
views [ADD] disable base_view search for better performance 2016-07-04 12:13:13 +02:00
README.rst [ADD] make prefetch timeout configurable 2017-05-05 12:05:02 +02:00
__init__.py [ADD] web_search_autocomplete_prefetch 2015-12-09 21:30:36 +01:00
__openerp__.py [ADD] disable base_view search for better performance 2016-07-04 12:13:13 +02:00

README.rst

.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
    :alt: License: AGPL-3

============================
Prefetch autocomplete offers
============================

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.

Usage
=====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
    :alt: Try me on Runbot
    :target: https://runbot.odoo-community.org/runbot/162/8.0

For further information, please visit:

* https://www.odoo.com/forum/help-1

Known issues / Roadmap
======================

* 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
  pess. 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 <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/web/issues/new?body=module:%20web_search_autocomplete_prefetch%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Credits
=======

Contributors
------------

* Holger Brunn <hbrunn@therp.nl>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.