v 9.0 v 10.0 Third Party 501
Download for v 10.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Website Builder (website)
Technical Name website_field_autocomplete
LicenseAGPL-3
Websitehttps://laslabs.com/
Versions 10.0 9.0
You bought this module and need support? Click here!

Website Field - AutoComplete

Adds an AutoComplete field for use in Odoo Website.

This module is somewhat difficult to use on its own in an effort to not require any dependencies other than website.

Usage

To use this module, you need to add an input field with the js_website_autocomplete class, such as in the below format:

<input type="text"
       class="js_website_autocomplete"
       data-query-field="name"
       data-display-field="name"
       data-value-field="id"
       data-limit="10"
       data-domain='[["website_published", "=", true]]'
       data-model="product.template"
       />

Following is a breakdown of the available attributes & their defaults:

Attribute Description Default Required
data-model Model name to query   True
data-query-field Field to query when searching name False
data-display-field Field to display query-field False
data-value-field Field to use as form value display-field False
data-limit Limit results to this many 10 False
data-domain Additional domain for query [] False
Try me on Runbot

Known Issues / Road Map

  • Replace jQuery UI Autocomplete w/ HTML5 Datalist when ready for production.

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 smashing it by providing a detailed and welcomed feedback.

Credits

Contributors

Maintainer

Odoo Community Association

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.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
How implement it in odoo 11?
by
Daniel
on 10/15/18, 5:41 AM

Hi, how could I implement it in odoo 11? Thanks!!