OCA / web

Odoo web client UI related addons
GNU Affero General Public License v3.0
943 stars 1.89k forks source link

[16.0] web_widget_x2many_2d_matrix: not showing all columns #2630

Open Bart-dh opened 1 year ago

Bart-dh commented 1 year ago

Module

web_widget_x2many_2d_matrix

Describe the bug

When displaying a field with a lot of data, not all columns are show. For example: I have a one2many field with 210 lines. There should be 10 rows and 21 columns, but only 4 columns are displayed.

To Reproduce

Affected versions: 16.0

Steps to reproduce the behavior:

  1. Create one2many field
  2. Add enough data
  3. Display one2many field with widget x2many_2d_matrix

Expected behavior All columns should be shown. All rows are currently shown with a scrollbar, columns should have a horizontal scrollbar. This used to work in 14.0

Additional context /

Bart-dh commented 1 year ago

@tarteo you migrated this to 16.0, perhaps you could look into this?

therbin200 commented 1 year ago

To precise this point, the list is limited to 40 records at start of the component.

The earliest datas we get is in getList() with this.props. If we log this.props.value.records, we see that this list is limited to 40 records, and doesn't matter how many records we have in the field passed in the template.

hildickethan commented 1 year ago

You can change the 40 limit with this parameter <tree limit="999999">, we have some crazy limit like this to cover very big tables. Our biggest table is 34x244 and it shows every value with vertical and horizontal scrollbars

Bart-dh commented 1 year ago

You can change the 40 limit with this parameter <tree limit="999999">, we have some crazy limit like this to cover very big tables. Our biggest table is 34x244 and it shows every value with vertical and horizontal scrollbars

Thanks for the tip!