Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 88 |
Technical Name |
mis_color_picker |
License | LGPL-3 |
Website | https://i-solusi.com |
Versions | 15.0 16.0 17.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 88 |
Technical Name |
mis_color_picker |
License | LGPL-3 |
Website | https://i-solusi.com |
Versions | 15.0 16.0 17.0 |
MIS Color Picker Widget
The MIS Color Picker Widget is a custom field widget for Odoo that allows users to select colors using a modern
and intuitive color picker. This widget supports both HEX and RGB color formats and provides a set of popular
colors for quick selection. It utilizes the Pickr lightweight and
fast JavaScript library for the color picker functionality.
Screen Shot

Features
- Easy integration with Odoo forms
- Supports HEX & RGB color format
- Includes a set of popular colors for quick selection
- User-friendly interface with color preview
- Compatible with Odoo 14.0 and above
Installation
- Download the module from the Odoo App Store.
- Extract the downloaded file to your Odoo addons directory.
- Restart your Odoo server.
- Update the app list by navigating to Apps > Update Apps List.
- Search for "MIS Color Picker Widget" and install the module.
Usage
- Navigate to the form where you want to use the color picker widget.
- Add a new field with the type "Char" to your model.
- In the form view, set the widget attribute of the field to "mis_color_picker".
- Save the changes and refresh the form view. The color picker widget should now be available for the specified field.
Example:
from odoo import models, fields
class ColorModel(models.Model):
_name = 'color.model'
_description = 'Color Model'
name = fields.Char(string='Name', required=True)
color = fields.Char(string='Color')
Example:
<field name="color" widget="mis_color_picker"/>
Please log in to comment on this module