Provides an autocomplete field for Website on any model
Project description
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 |
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
Dave Lasley <dave@laslabs.com>
Maintainer
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo10_addon_website_field_autocomplete-10.0.1.0.0.99.dev1-py2-none-any.whl
.
File metadata
- Download URL: odoo10_addon_website_field_autocomplete-10.0.1.0.0.99.dev1-py2-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4280c505660233387a37f44312ee1190e71c68087101c9557aa87ba44e56e45b |
|
MD5 | 4eacca9c40594a5fc578d772e85878b6 |
|
BLAKE2b-256 | c58152b44a93d9b18ab2c98fd9e48da1b51cb6f4474c156d3cb01a5f2795387b |