web_widget_x2many_2d_matrix example
Install it and click on the menu item Demo x2m matrix widget.
auto_awesome What this module does
AI-generated from the code · Odoo 13.0This module adds a demo menu in Odoo that shows how the 2D matrix widget displays and edits records in a grid, with rows and columns built from two fields.
This is a demonstration module for the 2D matrix widget. It adds a menu called "Demo x2m matrix widget" that opens a list of demo records (x2m.demo). Opening a record shows a form with its lines (x2m.demo.line) and three buttons at the bottom: "Try x2m 2d matrix", "Try x2m 2d matrix (selection)" and "Try x2m 2d matrix (many2one)".
Each button opens a popup wizard (x2m.matrix.demo.wiz) where the same lines are shown in a grid. The columns come from the demo record (demo_id) and the rows from the user (user_id). The cell value changes depending on the button: a number (value), a selection (value_selection) or a group (value_many2one).
When the wizard opens, it automatically builds a line for every combination of demo record and user that already exists in the data, so the grid is filled in. The many2one version only offers groups that contain the row's user.
Regular users can only read the demo records; only administrators can create, edit or delete them. The module is meant as a technical example, not a business feature.
Depends on
Menus it adds
Models and fields (3)
- x2m.demo · new modelname, line_ids
- x2m.demo.line · new modelname, value, demo_id, user_id, value_many2one, value_selection
- x2m.matrix.demo.wiz · new modelline_ids
Text generated by AI (DeepSeek) from reading the Odoo 13.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: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/web.
terminal Installation and usage
No verified informationInstallation 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.