rotting
Odoo 19 marks records that sit too long in a pipeline stage as rotting. The rotting widget is the red day-count badge that appears on their kanban cards.
August 24, 2026Updated August 24, 20267 min read
| Technical name | rotting |
|---|---|
| Field types | integer (placed on rotting_days) |
| Views | kanban |
| Also registered as | kanban.rotting is the only registration; there is no base name |
| Module | mail, shipped with every Odoo database |
| Used in core | 3 occurrences across 3 modules: crm, hr_recruitment, project |
| Versions | Odoo 20.0, Odoo 19.0 |
| No-code setup | No. Configuring the stage threshold is no-code, but placing the widget needs XML |
| Alternatives | badge_rotting, rotting_statusbar_duration, remaining_days |
What the rotting badge does
What this means for your team
Working examples
One feature, three widgets, one registry quirk
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. Registered as rotting_days on the development branch; the name rotting is reassigned to the list badge. See below. |
| Odoo 19.0 | Verified | Introduced in 19.0 as kanban.rotting, together with the mail.tracking.duration.mixin rotting fields. |
| Odoo 18.0 | Not available | The rotting feature does not exist. |
| Odoo 17.0 | Not available | The rotting feature does not exist. |
| Odoo 16.0 | Not available | The rotting feature does not exist. |
Upgrade note. The whole rotting feature is new in Odoo 19. Databases upgraded from 18 or earlier get the fields and widgets automatically through the mail module, but every stage arrives with the threshold at 0, so nothing rots until someone configures the stages.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| No badge appears on any card | Every stage still has rotting_threshold_days at 0, which disables the feature. Set Days to rot on the stages where waiting is abnormal. |
| Badge missing although the record is rotting | is_rotting or rotting_days is not loaded in the kanban view; the widget declares no dependencies and fails silently. Add both fields to the kanban arch, is_rotting can be invisible. |
| widget="rotting" does nothing in a list or form view | The widget is registered as kanban.rotting only. Use badge_rotting in lists and rotting_statusbar_duration in forms. |
| Won opportunities never show the badge | CRM overrides _get_rotting_domain so only pending leads rot. This is designed behavior, not a misconfiguration. |
| Raised the threshold but old records still show as rotting | Rotting compares against the last stage update date; the change is not retroactive for records updated before it. Touch the stage (move out and back) or wait for the compute to catch up on the next stage change. |
Rotting badge vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
rotting | Flagging stuck records directly on kanban cards | Day-count pill gated by is_rotting, kanban views only |
| badge_rotting | The same flag in list views | Renders the stage name plus the day pill, registered for lists only |
| rotting_statusbar_duration | The same flag on the form statusbar | Full statusbar with per-stage durations and a rotting tooltip |
| remaining_days | Deadline-driven coloring | Counts toward an explicit date field instead of time spent in a stage |
Frequently asked questions
What does rotting mean in Odoo 19?+
How do I turn rotting on or off?+
Why is the rotting badge not showing on my kanban cards?+
Can I use the rotting widget in list or form views?+
Does the rotting widget have any options?+
Can I add rotting to my own model?+
Is the rotting widget changing in Odoo 20?+
Want a pipeline that flags its own dead weight?
We configure stage rot thresholds that match how your team actually sells, extend the rotting mixin to custom models like helpdesk or maintenance pipelines, and keep the widgets working through the Odoo 20 rename. Rotting is an Odoo 19 feature, so if you are on 16 to 18 this is one more reason to plan the upgrade.
Talk to an Odoo pipeline expert