priority
The stars on tasks and leads are the priority widget over a plain selection field. Clicking a star saves immediately, and clicking the current one clears it, both verified in the source.
| Studio name | Priority |
|---|---|
| Technical name | priority |
| Field types | selection |
| Views | form, list, kanban |
| Module | web, present in every Odoo database |
| Used in core | 40 occurrences across 24 modules, including crm, project, hr_recruitment, helpdesk-family models |
| Versions | Odoo 20.0, Odoo 19.0, Odoo 18.0, Odoo 17.0, Odoo 16.0 |
| No-code setup | Yes, via Odoo Studio (Enterprise) |
| Alternatives | boolean_favorite, selection, statusbar, badge |
What the Priority widget does
What this means for your team
Setting it up in Odoo Studio (no code)
What Studio cannot do here
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
autosave | boolean | Save the record immediately when a star is clicked. The save commits the whole record, pending edits included. Set False to defer to the normal save.(default: true) |
Autosave saves the record, not the field. Same semantics as the toggle widget: pending edits on the row or form are committed along with the star click. On heavily edited forms, either accept that or set autosave: False and let the star wait for the normal save.
Working examples
Alt+R and the un-star gesture
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. The development branch shows no behavior changes; see below. |
| Odoo 19.0 | Verified | Verified against the shipped source and tested on a clean database. |
| Odoo 18.0 | Verified | Same option and behavior. No XML changes needed. |
| Odoo 17.0 | Verified | Same option and behavior. No XML changes needed. |
| Odoo 16.0 | Verified | Same option and behavior. No XML changes needed. |
Upgrade note. Option and behavior are unchanged from Odoo 16 through 19; views carry over. Custom selections render exactly as before, since the star count has always followed the selection definition.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| Clicking a star cleared the priority | Clicking the currently selected level resets to the first value, the built-in un-star. Expected; click a different level to change instead of clear. |
| Wrong number of stars | Star count is the selection definition: values after the first each add a star. Adjust the field's selection list; the widget follows it. |
| Star click saved unfinished edits on the form | Autosave commits the whole record by default. Set options="{'autosave': False}" on forms where that is risky. |
| Alt+R does nothing | The command registers on form views only. Open the record; in lists, click the stars directly. |
| Automation fires on every star click | Each click is a save with autosave on. Expected; gate automations on the specific values that matter. |
Priority widget vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
priority | Urgency levels set and cleared in one click | Stars over a selection, instant save, clear-by-reclick, Alt+R command |
boolean_favorite | A single yes/no favorite flag | One star over a boolean, no levels |
selection | Levels chosen from a dropdown | Standard control, no instant save, no glanceable icons |
| statusbar | Workflow position | Process stages in the header, unrelated to urgency |
| badge | Read-only colored status in lists | Display pill, not clickable |
Frequently asked questions
How do I add priority stars to my Odoo model?+
How do users remove a star?+
Does clicking a star save the record?+
Can I have more than three stars?+
Is there a keyboard shortcut for setting priority?+
Priority stars or boolean_favorite, which one?+
Escalations that trigger themselves?
Priority stars pay off when automations react to them: assignment, SLAs, alerts on Urgent. We wire the stars, the rules and the reports they feed as part of CRM and helpdesk work on Odoo 16 through 19.
Book a free consultation