im_livechat.rating_percentage
Unusual entry in the widget inventory: im_livechat.rating_percentage is not a field widget at all. It is a formatter that turns Livechat's 1 to 5 rating scale into a 0 to 100 percentage inside pivot and graph reports.
| Technical name | im_livechat.rating_percentage |
|---|---|
| Field types | integer, float (as a pivot/graph measure) |
| Views | pivot, graph |
| Module | im_livechat (Livechat app) |
| Used in core | 6 occurrences across 1 module: the im_livechat channel report pivot and graph views |
| Versions | Odoo 19.0 |
| No-code setup | No: measures in reports are wired in XML only |
| Alternatives | percentage, percentpie, progressbar |
What the rating percentage formatter does
What this means for your team
Working examples
The formula, and why it subtracts one
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Provisional: the formatter file is deleted on the development branch while report views still reference it. See below. |
| Odoo 19.0 | Verified | Introduced in 19.0; verified against the shipped source. |
| Odoo 18.0 | Not available | Does not exist; Livechat rating reports aggregate the raw 1 to 5 value. |
| Odoo 17.0 | Not available | Does not exist. |
| Odoo 16.0 | Not available | Does not exist. |
Upgrade note. The formatter and the Rating (%) measures that use it are new in Odoo 19. In Odoo 18's Livechat reports the rating measure aggregates on the raw 1 to 5 scale, so dashboards built on those reports will show different numbers after an upgrade: same data, new unit.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| Using it on a form or list field shows a missing widget warning | It lives in the formatters registry; form and list views look up the field widgets registry. Only reference it on pivot or graph measures. On form fields, use a computed percentage field with the percentage widget instead. |
| The percentage looks lower than expected | The scale is anchored at 1: a 1-star rating is 0 percent, not 20 percent, because the formula divides the 4-point usable range. Nothing to fix; that is the intended mapping of Odoo's 1 to 5 rating scale. |
| Your own custom formatter never gets picked up | The JavaScript file is not in the module's web.assets_backend bundle, or the registry name collides with an existing one. Add the file to the assets bundle in __manifest__.py and prefix the formatter name with your module name. |
| Numbers changed after upgrading to Odoo 19 | The Livechat rating measure switched from the raw 1 to 5 average to this percentage conversion. Update any external dashboards or exports that consumed the old scale; the underlying stored data is unchanged. |
Rating percentage formatter vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
im_livechat.rating_percentage | Showing Livechat's 1 to 5 ratings as percentages in reports | A formatters-registry function, not a field widget: display-time conversion only |
| percentage | Fields that already store a percentage or fraction | A real field widget with a percent sign; editable on forms |
| percentpie | A 0 to 100 value as a visual gauge | Draws a circular pie instead of reformatting a report measure |
| progressbar | Progress toward a target with an optional max field | Horizontal bar in forms and lists, not a report formatter |
Frequently asked questions
Is im_livechat.rating_percentage a field widget?+
How does Odoo convert a 1 to 5 rating to a percentage?+
Can I use this formatter on my own model's ratings?+
Why is a rating of 1 shown as 0 percent and not 20 percent?+
Does the conversion change what is stored in the database?+
Reports your managers actually read?
A seven-line formatter turned Livechat's rating average into a percentage everyone understands. We build the same kind of small, surgical reporting improvements across Odoo: custom measures, readable units, pivot and graph views tuned to how your team makes decisions.
Sharpen our Odoo reporting