Skip to main content
iVentureTeam

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.

August 11, 2026Updated August 11, 20265 min read
Odoo 19 task list with the priority widget showing star icons, one row starred.
Studio namePriority
Technical namepriority
Field typesselection
Viewsform, list, kanban
Moduleweb, present in every Odoo database
Used in core40 occurrences across 24 modules, including crm, project, hr_recruitment, helpdesk-family models
VersionsOdoo 20.0, Odoo 19.0, Odoo 18.0, Odoo 17.0, Odoo 16.0
No-code setupYes, via Odoo Studio (Enterprise)
Alternativesboolean_favorite, selection, statusbar, badge

What the Priority widget does

Odoo's stars are not a rating widget bolted on; they are a thin skin over an ordinary selection field. The widget reads the field's selection list, treats the first value as "no priority", and draws one clickable star per remaining value. CRM's classic definition, 0 Normal, 1 High, 2 Very High, 3 Urgent, renders as three stars.

Interaction is tuned for speed, verified in the source. A click writes the value and, with autosave at its default, saves the record on the spot, list views included. Clicking the star that is already active resets the field to the first selection value, so un-starring needs no extra control. Hovering previews the level before you commit.

What this means for your team

Priority stars work because they cost one click and are visible from across the room. A pipeline where urgent leads carry stars gets triaged by eye; kanban cards sort and group by the same field; and because it is just a selection underneath, filters, automations and reports treat it like any other value.

Two decisions make or break the feature. Keep the scale short: one or two stars is a signal, five is a debate nobody wins, and the widget will happily render however many your selection defines. And agree on meaning: "starred means the founder asked" beats "starred means important" every time. The clear-by-reclick gesture matters operationally too, since stale urgency is worse than none; teams should un-star as reflexively as they star.

The instant save is the same trade as the toggle widget: automations watching priority fire at the click, which is usually exactly what an escalation flow wants.

Setting it up in Odoo Studio (no code)

Studio applies this widget without code.

  1. Open the view in Studio and select the selection field (or create one whose first value is the neutral state).

  2. In Properties, set Widget to Priority. The Autosave option Studio shows corresponds to the option below.

What Studio cannot do here

The star count and labels are the selection's values, edited on the field, not the widget. Anything conditional, hiding stars per state, restricting who may set Urgent, is view attributes or record rules, one step beyond Studio's panel.

Supported options in Odoo 19

Verified against priority_field.js in the Odoo 19.0 web module. One declared option; the rest of the behavior is fixed.

OptionTypeWhat it does
autosavebooleanSave 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

The standard CRM-style field

priority = fields.Selection([
    ("0", "Normal"),
    ("1", "High"),
    ("2", "Very High"),
    ("3", "Urgent"),
], default="0")

Three stars; the first value is the empty state and the default.

In the view

<field name="priority" widget="priority"/>

A single favorite star

starred = fields.Selection([("0", "Normal"), ("1", "Starred")], default="0")

Two values render as one star, a lightweight flag pattern. For booleans, boolean_favorite does the same without a selection.

Without instant saving

<field name="priority" widget="priority"
       options="{'autosave': False}"/>

Alt+R and the un-star gesture

On form views the widget registers a command, verified in the source: Set priority..., category smart action, hotkey Alt+R.

Press it with a record open and the command palette lists every selection label, Normal through Urgent; pick one and the same update-and-save path runs as if you had clicked the star. Together with the statusbar's Alt+X family, it makes full keyboard triage of a queue realistic: open, Alt+R, choose, next.

Worth knowing about the gesture set: the click handler is where clear-by-reclick lives, comparing the clicked value with the current one and resetting to options[0] on a match. If users report "my star disappeared", they double-set the same level; that is the un-star working.

Version compatibility

VersionStatusNotes
Odoo 20.0In developmentNot released. The development branch shows no behavior changes; see below.
Odoo 19.0VerifiedVerified against the shipped source and tested on a clean database.
Odoo 18.0VerifiedSame option and behavior. No XML changes needed.
Odoo 17.0VerifiedSame option and behavior. No XML changes needed.
Odoo 16.0VerifiedSame 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

Odoo 20 is expected at Odoo Experience in Brussels, 24 to 26 September 2026. The changes below are read from the public development branch and are not final until release.

Nothing changes for this widget. Same single option and default, same clear-by-reclick, same Alt+R command. Internal syntax moves to the new Owl props system, affecting JavaScript patches only. We re-verify once Odoo 20 ships.

Common problems and fixes

SymptomCause and fix
Clicking a star cleared the priorityClicking 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 starsStar 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 formAutosave commits the whole record by default. Set options="{'autosave': False}" on forms where that is risky.
Alt+R does nothingThe command registers on form views only. Open the record; in lists, click the stars directly.
Automation fires on every star clickEach click is a save with autosave on. Expected; gate automations on the specific values that matter.

Priority widget vs the alternatives

WidgetBest forKey difference
priorityUrgency levels set and cleared in one clickStars over a selection, instant save, clear-by-reclick, Alt+R command
boolean_favoriteA single yes/no favorite flagOne star over a boolean, no levels
selectionLevels chosen from a dropdownStandard control, no instant save, no glanceable icons
statusbarWorkflow positionProcess stages in the header, unrelated to urgency
badgeRead-only colored status in listsDisplay pill, not clickable

The practical test: a ranked urgency level, stars. A plain yes/no favorite, boolean_favorite. A workflow position, the statusbar. And if you catch yourself wanting five stars with half-steps, you want a proper scoring field, not a priority.

Frequently asked questions

How do I add priority stars to my Odoo model?+
Create a selection field whose first value is the neutral state (e.g. 0 Normal, 1 High, 2 Urgent) and render it with widget="priority", or pick the Priority widget in Studio. Each value after the first becomes a star.
How do users remove a star?+
By clicking the currently active star: verified in the source, a click on the selected value resets the field to the first selection value. No separate clear control exists or is needed.
Does clicking a star save the record?+
Yes by default. The autosave option defaults to true and the handler saves the record, so list-view triage needs no Save button. Set it to False for checkbox-like deferred behavior.
Can I have more than three stars?+
Yes; the widget renders one star per selection value after the first, so a five-value selection gives four stars. Whether four levels of urgency help your team is the better question.
Is there a keyboard shortcut for setting priority?+
On form views, Alt+R opens the Set priority... palette listing every level, registered by the widget itself. It runs the same save path as clicking.
Priority stars or boolean_favorite, which one?+
One flag with no levels: boolean_favorite on a boolean. Graded urgency: this widget on a selection. They look alike but store different things, and reports care about the difference.

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

How this page was produced

The option, its default, the record-save semantics, the clear-by-reclick handler and the Alt+R command were all read from the Odoo 19.0 web module source (priority_field.js) and confirmed on a clean Odoo 19 database, where the screenshot was captured. The Odoo 20 statement comes from the same file on the public development branch, where it is unchanged. Spotted an error? Tell us and we will correct the page.