This module add the possibility to insert Plotly charts into Odoo standard views.
Plotly is a Python interactive visualization library built on top of d3.js and stack.gl, plotly.js is a high-level, declarative charting library. plotly.js ships with over 40 chart types, including scientific charts, 3D graphs, statistical charts, SVG maps, financial charts, and more.
If you want to see some samples of plotly's capabilities follow this link.
auto_awesome What this module does
AI-generated from the code · Odoo 17.0Adds a new field widget called Plotly Chart that renders interactive Plotly graphs inside Odoo form views. It can be used on text or character fields that contain Plotly HTML/script output.
This module adds a new field widget named plotly_chart to the Odoo web client. It is a display widget, not a business model, so it does not create any new menus, reports or database tables.
- It registers the widget in the field registry, so developers can select "Plotly Chart" as the widget for a
charortextfield in a form view. - When the form is shown, the widget loads the Plotly JavaScript library and renders the chart stored in the field value.
- The field value is expected to contain the Plotly chart HTML (a graph container plus a script). The widget extracts the graph element and runs the embedded script to draw the chart.
- The chart is refreshed automatically when the record is saved or the field value changes, so the displayed graph stays in sync with the data.
It only affects the web client display layer and depends on the standard web module. A Python dependency on the Plotly library version 5.22.0 is declared, but the module itself defines no Python models or server-side logic. In short, it gives users a way to see interactive Plotly charts directly inside Odoo forms instead of plain text.
Depends on
Required by other modules
Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 4 confirmed, 5 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/web.
terminal Installation and usage
OCA documentation · Odoo 17.0Installation
Source · Odoo 17.0You need to install the python plotly library:
pip install plotly==5.22.0
Usage
Source · Odoo 17.0To insert a Plotly chart in a view proceed as follows:
- Import plotly: import plotly
- Declare a text computed field like this: plotly_chart = fields.Text( string='Plotly Chart', compute='_compute_plotly_chart', )
- In its computed method do: def _compute_plotly_chart(self): for rec in self: data = [{'x': [1, 2, 3], 'y': [2, 3, 4]}] rec.plotly_chart = plotly.offline.plot(data, include_plotlyjs=False, output_type='div')
- In the view, add something like this wherever you want to display your plotly chart:
No verified information in OCA: Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.