Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 361 |
Technical Name |
web_x2many_chart |
License | OPL-1 |
Website | https://github.com/RMTWorks |
Versions | 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 361 |
Technical Name |
web_x2many_chart |
License | OPL-1 |
Website | https://github.com/RMTWorks |
Versions | 17.0 18.0 |
📊 Web X2Many Chart
Transform your One2many and Many2many fields into stunning interactive charts
Interactive Chart Demonstrations
Hover over the charts to see the interactive experience!
Sales Performance by Month
Revenue by Product Category
Bar & Column
Perfect for comparing categories and showing data changes over time
Line & Area
Ideal for trends, time series data, and continuous data visualization
Pie & Donut
Show proportions and percentages of different data segments
Radar & Polar
Multi-dimensional data comparison and performance analysis
Heatmap
Visualize data density and patterns across two dimensions
📈 Sales Analytics
Visualize sales performance, revenue trends, and customer acquisition metrics with interactive charts
💰 Financial Reporting
Create stunning financial dashboards with P&L charts, cash flow analysis, and budget comparisons
📊 Project Management
Track project progress, resource allocation, and milestone achievements with visual charts
🎯 KPI Dashboards
Monitor key performance indicators and business metrics with real-time chart updates
👥 HR Analytics
Analyze employee performance, attendance patterns, and recruitment metrics
📦 Inventory Management
Visualize stock levels, product movements, and supply chain analytics
Simple Widget Configuration
Configure your charts with simple widget options:
widget="x2many_chart"
options="{
'type': 'bar',
'series': [{'groupby': 'product_id', 'fields': 'price_total:sum'}],
'chart_title': {'text': 'Sales by Product'}
}"/>
1. Install Module
Download and install through Odoo Apps.
2. Configure Series Data
Define your data series with 'groupby' and 'fields'. Essential for proper chart generation.
3. Add to Your Form
Simply add the widget to any One2many or Many2many field.
4. Enjoy Beautiful Charts!
Your relational data is now transformed into stunning, interactive charts.
See the Module in Action on Real Odoo Data
Below is an actual screenshot showing the X2Many Chart widget displaying sales performance data directly in an Odoo contact form.

💡 What you're seeing: A live bar chart embedded in a contact's form view, showing sales performance data aggregated from related records. The chart updates automatically as data changes, providing instant visual insights.
Simple Widget Configuration
Configure your charts with simple widget options. Here's a basic example:
widget="x2many_chart"
options="{
'type': 'bar',
'series': [{'groupby': 'product_id', 'fields': 'price_total:sum', 'name': 'Total Sales'}]',
'chart_title': {'text': 'Sales by Product'},
'chart_height': '400px',
'limit': 20
}"/>
The
series
option is essential for chart
functionality. It defines how your relational data is
grouped and aggregated using Odoo's
webReadGroup
method.
Series Configuration Deep Dive
The series
option is a JSON string that
defines how to fetch and aggregate data from your
related records. It uses Odoo's powerful
webReadGroup
ORM method behind the scenes.
'groupby': 'field_name',
'fields': 'field_name:aggregation_function',
'name': 'Series Display Name'
}]
Series Properties
Property | Required | Description | Example |
---|---|---|---|
groupby
|
✅ Yes | Field to group records by |
"product_id" ,
"date" ,
"state"
|
fields
|
✅ Yes | Field with aggregation function |
"amount:sum" ,
"id:count" ,
"price:avg"
|
name
|
❌ No | Display name for the series |
"Total Revenue" ,
"Order Count"
|
Available Aggregation Functions
"amount:sum"
"id:count"
"price:avg"
"amount:max"
"amount:min"
"partner_id:count_distinct"
Series Examples by Chart Type
'series': [{
'groupby': 'product_id',
'fields': 'price_total:sum',
'name': 'Revenue'
}]
'series': [{
'groupby': 'date_order:month',
'fields': 'id:count',
'name': 'Monthly Orders'
}]
'series': [{
'groupby': 'state',
'fields': 'id:count',
'name': 'Order Status'
}]
'series': [
{'groupby': 'product_id', 'fields': 'price_total:sum', 'name': 'Revenue'},
{'groupby': 'product_id', 'fields': 'id:count', 'name': 'Quantity'}
]
• The
series
field is a JSON array, not a JavaScript object• Field names must exist in your related model
• For count aggregation, use
"id:count"
or
"field_name:count"
• Date grouping supports
:day
,
:week
,
:month
,
:quarter
,
:year
• Pie charts use only the first series in the array
Feature | Details |
---|---|
Odoo Version | 17.0 or Later (OWL Framework) |
Field Support | One2many, Many2many |
Chart Types | Bar, Line, Area, Pie, Donut, Radar, Scatter, Mixed |
Responsive | Yes - Mobile, Tablet, Desktop |
Performance | Optimized for Large Datasets |
📊 Transform Your Data Today
Professional chart visualization • Easy installation • Comprehensive documentation • Active support
Made with ❤️ by RMT Works • Transform your Odoo data
visualization today!
📧 Supports
•
🌐 github.com/RMTWorks
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module