OdooWiki OCA HUB

web_widget_x2many_2d_matrix example

web_widget_x2many_2d_matrix_example folder_open OCA/web open_in_new
Hidden/Dependency License: AGPL-3

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.0

This 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.

Menus it adds

Demo x2m matrix widget
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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

No verified information

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.

info

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.