| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 61 |
| Technical Name |
ica_char_autocomplete |
| License | LGPL-3 |
Char Auto Complete Field
The Char Auto Complete Field is a custom Odoo widget that extends
the standard Char field to provide an autocomplete popup similar
to a Many2one field, without enforcing a relational constraint.
Features
- Works on Char fields
- Autocomplete popup like Many2one
- Search any Odoo model
- No foreign key or relation required
Usage
XML View Example
<field name="ica"
widget="char_auto_complete"
options="{'showModel': 'sale.order'}"/>
Note: The value selected from the popup will be written
directly into the Char field.
Options
| Option | Type | Description |
|---|---|---|
showModel |
string | Model used to fetch autocomplete records (e.g. sale.order) |
Behavior
- User types into the Char field
- Popup appears with matching records
- User selects a record
- Selected value is stored as plain text
Screenshot
Please log in to comment on this module