| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 59 |
| Technical Name |
ek_json_list_widget |
| License | LGPL-3 |
| Website | https://ekika.co |
| Versions | 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 59 |
| Technical Name |
ek_json_list_widget |
| License | LGPL-3 |
| Website | https://ekika.co |
| Versions | 17.0 18.0 19.0 |
JSON List Widget
The JSON List Widget turns any Char or Text field into an interactive tag input.
Type a value, press Enter, and it appears instantly as a badge - all stored as valid JSON
so json.loads(record.field) returns a Python list directly.
See It in Action
Type a value, press Enter - it appears as a badge. Click x to remove. Stored as valid JSON.
Key Features
Type & press Enter to add badges instantly.
Native Create "..." option appears while typing.
x button on each badge removes it instantly.
json.loads(record.field) returns a Python list.
Works with both field types - no schema changes needed.
Renders clean badge pills - no input, no delete buttons.
How to Use
Step 1 - Define the Field on Your Model
Use a standard Char or Text field. No special field type is needed.
from odoo import fields, models
class MyModel(models.Model):
_name = 'my.model'
tag_list = fields.Char(string='Tags')
Step 2 - Add the Widget in the Form View
Add widget="json_list" to the field tag. Optionally set a custom placeholder.
<!-- Basic usage --> <field name="tag_list" widget="json_list"/> <!-- With custom placeholder --> <field name="tag_list" widget="json_list" placeholder="Type and press Enter"/>
Step 3 - Read the Value in Python
The stored value is a JSON string. Use json.loads() to get a Python list.
import json record = env['my.model'].browse(1) values = json.loads(record.tag_list or '[]') # -> ['apple', 'banana', 'cherry']
Frequently Asked Questions (FAQs)
Find answers to common questions about this addon. If you don't see your question here, feel free to contact us!
The widget supports Char and Text field types. No special database changes are required - just declare a standard fields.Char() or fields.Text() on your model.
Values are stored as a JSON-encoded string in the database column. For example, adding apple, banana, and cherry stores ["apple", "banana", "cherry"]. Use json.loads(record.field or '[]') to read it in Python.
In readonly mode (or list view), the widget only renders the badge pills - no input field and no delete buttons are shown. It looks identical to Odoo's native tag display.
Contact Us:
- WhatsApp / Phone: +919510031431 - URGENT
- Email: hello@ekika.co
- Skype: amshukla17
- Website: https://ekika.co
- Support Ticket: https://ekika.co/support - Get Notifications of Progress.
- 24 x 7 Available! Contact us NOW.
Need Help?
EKIKA Has Your Back - 24/7 Support.
We're just a message away, no matter the time zone.
90 Days Free Support
We understand that even with great documentation, you might have questions or need additional assistance. That's why we offer exceptional support.
(copy link to clipboard)
(copy link to clipboard)
(copy link to clipboard)
Our Other Apps
Services EKIKA Provides
EKIKA is your destination for expert Odoo ERP implementation and customization. We pride ourselves on building reliable, trust-based partnerships that give you full transparency and control over your business processes.
With over 12 years of experience, we can assist you with eCommerce platforms, production planning, point-of-sale systems, managing inventory adjustments, and providing advanced field worker tracking solutions to optimize your workflows and boost operational efficiency.
Implementation
Utilise Odoo ERP tailored for your business needs for smooth operations.
Customization
Personalized adjustments to Odoo modules for seamless management.
Support
Ongoing assistance and maintenance to optimize your Odoo system's performance.
Are you struggling with disorganized operations, high operational costs, or lack of transparency in your processes? What sets us apart is our commitment to personalized solutions tailored to your unique business needs and our proactive support, ensuring seamless integration and ongoing success.
Would you like to explore Odoo ERP for your business? Schedule a free consultation with EKIKA today!
Please log in to comment on this module