kanban_color_picker
The color palette inside a kanban card's dropdown menu is one widget: kanban_color_picker. Zero options, one strong opinion: picking a color saves immediately.
| Technical name | kanban_color_picker |
|---|---|
| Field types | integer (color index) |
| Views | kanban (card dropdown menu) |
| Module | web, present in every Odoo database |
| Used in core | 26 occurrences across 17 modules, including project, maintenance, hr_recruitment, mrp, survey, website_slides |
| Versions | Odoo 20.0, Odoo 19.0, Odoo 18.0, Odoo 17.0, Odoo 16.0 |
| No-code setup | No. The palette is placed inside the kanban card menu in view XML |
| Alternatives | color_picker, color, many2many_tags |
What the Color Picker field does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
(none) | n/a | The widget declares no supportedOptions and reads none in extractProps. Only the record's readonly state influences rendering. Any option you pass is silently ignored. |
No colors option exists. The palette is the shared ColorList.COLORS constant, the same twelve entries every color-index widget in Odoo uses. Changing or extending the palette means patching that shared list or restyling the o_colorlist_item_color_* classes, which affects every widget that uses it, tags included.
Working examples
Instant save, and the readonly disappearing act
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. The development branch shows no functional changes to this widget; see below. |
| Odoo 19.0 | Verified | Verified against the shipped source, component and template. |
| Odoo 18.0 | Verified | Same zero-option surface and registration, verified in the 18.0 source. |
| Odoo 17.0 | Verified | Widget present with the same registry name. Not re-verified line by line for this page. |
| Odoo 16.0 | Verified | Widget present with the same registry name. Not re-verified line by line for this page. |
Upgrade note. Nothing to migrate between 16 and 19: no options existed at any point, so views carry nothing that can break. If you patched the component itself, note that Odoo 20 migrates it to the new Owl props syntax.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| The color grid does not appear in the card menu | The record is readonly for this user; the template renders nothing when readonly. Check write access on the model, then re-check the menu. |
| Picking a color does nothing visible on the card | The kanban card styling is not wired to the same field the picker writes. Point the view's color configuration at the same integer field. |
| Color choice survives even though the user never saved | Expected: the picker saves the record immediately on click. No fix; train users that color picks are instant. |
| Need more or different colors | The palette is the shared 12-entry ColorList constant, not a widget option. Restyle the o_colorlist_item_color_* classes or patch the shared list; both affect all color widgets. |
| Widget on a char field behaves oddly | No supportedTypes are declared, so nothing warned you, but core styling expects an integer index. Store the index in an integer field named color. |
Color Picker field vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
kanban_color_picker | Letting users color kanban cards from the card menu | Writes a palette index and saves instantly; renders nothing when readonly |
color_picker | The same palette on form and list views | Expanded or toggled palette by view type, and the pick is not saved until the record is |
| color | Storing an actual hex color as data | Native browser color input writing #RRGGBB to a char field, not a palette index |
| many2many_tags | Categorizing with labeled, colored tags | Colors belong to tag records, with meaning attached to a name rather than a bare swatch |
Frequently asked questions
What is the kanban_color_picker widget in Odoo?+
Does picking a color save the record?+
Why do some users not see the color palette at all?+
Can I add my own colors to the picker?+
Which field type should the picker be used on?+
Is kanban_color_picker changing in Odoo 20?+
Want kanban boards that signal status by themselves?
Rule-driven card colors, custom palettes, and boards where color means the same thing to everyone: all small, high-leverage changes on the same integer field this picker writes. We build them for Odoo 16 through 19.
Book a free consultation