| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Community Apps Dependencies | Show |
| Lines of code | 535 |
| Technical Name |
web_widget_x2many_2d_matrix_multi_axis |
| License | AGPL-3 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Community Apps Dependencies | Show |
| Lines of code | 535 |
| Technical Name |
web_widget_x2many_2d_matrix_multi_axis |
| License | AGPL-3 |
2D Matrix Multi Axis Labels
Show multiple independent label fields on x2many 2D matrix axes.
This module extends the OCA web_widget_x2many_2d_matrix widget. It keeps the original widget behavior and adds configurable multi-field labels for the X and Y axes.
Main Features
- Render extra X-axis fields as separate table header rows.
- Render extra Y-axis fields as separate row-label columns.
- Show Y-axis field names in the top-left header area.
- Keep native matrix value editing and totals from the original widget.
- Support both appended extra fields and explicit display field lists.
Preview
The same matrix can display richer axis labels without merging all label values into one cell.
Usage
Add the fields you want to display inside the nested list view, then configure them on the matrix field.
<field name="line_ids"
widget="x2many_2d_matrix"
field_x_axis="x_axis"
field_x_axis_extra_fields="x_code x_description"
field_y_axis="y_axis"
field_y_axis_extra_fields="y_code y_description"
field_value="matrix_value">
<tree>
<field name="x_axis"/>
<field name="x_code"/>
<field name="x_description"/>
<field name="y_axis"/>
<field name="y_code"/>
<field name="y_description"/>
<field name="matrix_value"/>
</tree>
</field>
Options
- field_x_axis_extra_fields: fields appended to the X-axis label, rendered as extra header rows.
- field_y_axis_extra_fields: fields appended to the Y-axis label, rendered as extra label columns.
- field_x_axis_display_fields: explicit list of X-axis display fields, replacing the default label list.
- field_y_axis_display_fields: explicit list of Y-axis display fields, replacing the default label list.
Extra or display fields must be present in the nested <tree>
so Odoo loads their values and field metadata.
Compatibility
- Odoo 17.0
- Requires web_widget_x2many_2d_matrix
- License: AGPL-3
Credits
This module depends on and extends web_widget_x2many_2d_matrix from OCA/web. It does not copy or replace the original module.
Author: Hoang Minh Hieu
Please log in to comment on this module