Commit Graph

64 Commits (dfcf5ee5af1f141eae92443d65124b4dce273642)

Author SHA1 Message Date
SodexisTeam 01ba699445 [MIG] web_widget_x2many_2d_matrix: Migration to 17.0 2024-06-10 18:59:05 +05:30
SodexisTeam d2cb8c3d19 [IMP] web_widget_x2many_2d_matrix: pre-commit auto fixes 2024-02-29 17:11:38 +05:30
Ethan Hildick 53dcf344ad [FIX]: web_widget_x2many_2d_matrix: Editable boolean 2024-02-29 11:34:47 +05:30
docker-odoo 0591740087 [16.0][FIX] web_widget_x2many_2d_matrix: cells with no data error 2024-02-29 11:34:47 +05:30
tarteo 4483a7b7f2 [FIX] web_widget_x2many_2d_matrix: many2one domain issue
[FIX] web_widget_x2many_2d_matrix: many2one domain issue
2024-02-29 11:34:47 +05:30
tarteo ac91512a3d [IMP] web_widget_x2many_2d_matrix: Many2one value field 2024-02-29 11:34:47 +05:30
tarteo 2272f6e807 [IMP] web_widget_x2many_2d_matrix: Check is aggregatable 2024-02-29 11:34:47 +05:30
tarteo f2b1b7b87b [MIG] web_widget_x2_many_2d_matrix: Migration to 16.0
[MIG] web_widget_x2_many_2d_matrix: Migration to 16.0 (WIP, columns)

[MIG] web_widget_x2_many_2d_matrix: Migration to 16.0 (WIP, rows)

[MIG] web_widget_x2_many_2d_matrix: Migration to 16.0 (WIP, add value component)

Aggregated values

[MIG] web_widget_x2many_2d_matrix: Fix commitChanges of matrix.

[FIX] Fix commitChanges

[FIX] setDirty

[FIX] Aggregated values

[IMP] readonly working

[FIX] Update matrix on changing props

[FIX] Remove old files

[IMP] Run precommit stuff

[FIX] Remove deprecated readme sections

[MIG] Migrate show_row_totals and show_column_totals attributes

[MIG] sticky headers

Fixup

Fixup

Fixup

fixup

remove console.log

fixup
2024-02-29 11:34:47 +05:30
Sylvain LE GAL 276259d0ee [FIX] web_widget_x2many_2d_matrix: make the possibility to have alternative values for headers of rows and columns working 2024-02-29 11:34:47 +05:30
Christopher Ormaza c40883fb2e [IMP] web_widget_x2many_2d_matrix: black, isort, prettier 2024-02-29 11:34:47 +05:30
Sylvain LE GAL c53b13681a [FIX] web_widget_x2many_2d_matrix: remove console.log 2024-02-29 11:34:47 +05:30
Saran440 b5fa0cb4f3 [IMP] web_widget_x2many_2d_matrix: black, isort, prettier 2024-02-29 11:34:47 +05:30
Alexandre Díaz 0b572fd6fd [IMP] web_widget_x2many_2d_matrix: Debug mode 2024-02-29 11:34:47 +05:30
Adrià Gil Sorribes 7dafedc684 [13.0][MIG] web_widget_x2many_2d_matrix 2024-02-29 11:34:47 +05:30
Adrià Gil Sorribes 42545a3225 [IMP] web_widget_x2many_2d_matrix: black, isort 2024-02-29 11:34:47 +05:30
Pablo Fuentes 8f203482fa [FIX] web_widget_x2many_2d_matrix: Ensure lines order
As objects are unordered collections of properties, we ensure incoming lines order by using lists
2024-02-29 11:34:47 +05:30
Alexandre Díaz 61c0c93c2c [IMP] web_widget_x2many_matrix: Sticky header, footer rows and main, totals columns 2024-02-29 11:34:47 +05:30
Pablo Fuentes ee7745eacc [FIX] web_widget_x2many_2d_matrix: Wrong widget
In previous versions _setSubViewLimit was defined at AbstractView widget but in v12 is defined at FormView widget
2024-02-29 11:34:47 +05:30
Alexandre Díaz 0188fd9d76 [FIX] web_widget_x2many_2d_matrix: Force render in list mode on mobile 2024-02-29 11:34:47 +05:30
Pedro M. Baeza ca1cffb64b Revert "[FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens"
This reverts commit 10971ad68e.
2024-02-29 11:34:47 +05:30
Alexandre Díaz 49e39b3767 [FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens 2024-02-29 11:34:47 +05:30
Holger Brunn 38c180c58c [ADD] detect if used field type can be aggregated
fixes #1365
2024-02-29 11:34:47 +05:30
tarteo 50a4ef1342 [FIX] web_widget_x2many_2d_matrix: Padding in aggregate row
[FIX] Padding in aggregate row
2024-02-29 11:34:47 +05:30
tarteo 955b46981f [FIX] web_widget_x2many_2d_matrix: Use widget for formatting aggregates 2024-02-29 11:34:47 +05:30
Alexey Pelykh 735ecafe9f [IMP] web_widget_x2many_2d_matrix: center header cell 2024-02-29 11:34:47 +05:30
Alexey Pelykh ae0cdcf21f [FIX] web_widget_x2many_2d_matrix: total cell calculation 2024-02-29 11:34:47 +05:30
Alexey Pelykh 3801703597 [FIX] web_widget_x2many_2d_matrix: _renderBodyCell + _renderAggregateColCells 2024-02-29 11:34:47 +05:30
Pedro M. Baeza 2687423f81 [FIX] web_widget_x2many_2d_matrix: Closing parenthesis 2024-02-29 11:34:47 +05:30
Jordi Ballester Alomar c0b1e99b0d web_widget_x2many_matrix: fix issue with limit of records 2024-02-29 11:34:47 +05:30
Dennis Sluijk 7f0311a0c5 [IMP] web_widget_x2many_2d_matrix: Total of all rows (#1043) 2024-02-29 11:34:47 +05:30
Jairo Llopis 5ef302b333 [FIX] web_widget_x2many_2d_matrix: Allow empty cells
Before this commit, if a matrix was lacking one element, some ugly errors appeared to the user.

Now, it just displays the empty cell and lets the user go on.

Also, acknowledge another limitation of the widget and add it to roadmap.
2024-02-29 11:34:47 +05:30
Jairo Llopis f622805912 [FIX] web_widget_x2many_2d_matrix: Enable keyboard navigation 2024-02-29 11:34:47 +05:30
Jairo Llopis 1308eb21b5 [FIX] web_widget_x2many_2d_matrix: Fix linters 2024-02-29 11:34:47 +05:30
mreficent 0d09a0f92f [FIX] Make matrix editable depending of the status of the parent 2024-02-29 11:34:47 +05:30
Akim Juillerat 75bbdf37d0 [11.0] x2m matrix widget: Fix display of widget when called in onchange
Add nicer message when there are no values to display
2024-02-29 11:34:47 +05:30
Simone Orsi 4aaa4f9cb4 [MIG+REF][11] web_widget_x2many_2d_matrix
The widget has been completely refactored
to benefit from the new MVC paradigm introduced in v11.
2024-02-29 11:34:47 +05:30
Artem Kostyuk 7833764d82 [11][MIG] web_widget_x2many_2d_matrix WIP 2024-02-29 11:34:47 +05:30
Richard deMeester 71c5a464f2 [FIX] web_widget_x2many_2d_matrix: fixes (#712)
* Patches to make module operational.
* Minor fix to Readonly Switch
* Fix to render to set change attribute.
* Totals recompute.

Fixes #697
2024-02-29 11:34:47 +05:30
jesusVMayor 8a193b1d89 Migration of web_widget_x2many_2d_matrix to 10.0 2024-02-29 11:34:47 +05:30
Pedro M. Baeza bf1c32b2ce [FIX] web_widget_x2many_2d_matrix: Init correctly the view 2024-02-29 11:34:47 +05:30
Pedro M. Baeza daa25cb505 [IMP] web_widget_x2many_2d_matrix: Remove unneeded code 2024-02-29 11:34:47 +05:30
Pedro M. Baeza b5cb9a940b [IMP] web_widget_x2many_2d_matrix: Better options parsing 2024-02-29 11:34:47 +05:30
Pedro M. Baeza 1e8f27f176 [FIX] web_widget_x2many_2d_matrix: Use existing value in load_views 2024-02-29 11:34:47 +05:30
Pedro M. Baeza bc89fd38f3 [IMP] web_widget_x2many_2d_matrix: Include x_axis_clickable and y_axis_clickable attrs
XML attributes for the widget that allows to configure if the axis will be clickable
or not in case the source field is a many2one field.
2024-02-29 11:34:47 +05:30
Jairo Llopis a75c51e706 [IMP] web_widget_x2many_2d_matrix: Use new JS modularized API. 2024-02-29 11:34:47 +05:30
Pedro M. Baeza 5e160c6ab0 [MIG] web_widget_x2many_2d_matrix: Migration to 9.0 2024-02-29 11:34:47 +05:30
Pedro M. Baeza ad00b3ebd7 [IMP] web_widget_x2many_2d_matrix: New option field_att_<name>
Declare as many options prefixed with this string as you need for binding
a field value with an HTML node attribute (disabled, class, style...)
called as the `<name>` passed in the option.

NOTE: This doesn't prevent to require to fill the full matrix with
all the combination records.
2024-02-29 11:34:47 +05:30
Holger Brunn aef0fdbded [IMP] web_widget_x2many_2d_matrix: Several improvements
* README update to newest OCA template
* Example in README
* Massive performance boost for big matrices, specially on Firefox
* Assign id on row in order to find it back in all cases
* Fix #321, choked on cached writes
2024-02-29 11:34:47 +05:30
Holger Brunn 8823c6fa8b [FIX] also reinitialize totals 2024-02-29 11:34:47 +05:30
Holger Brunn 9a5e53b7a9 [FIX] support rerendering after virtual ids change
this is necessary for correct operation after creating new records
2024-02-29 11:34:47 +05:30