Christopher Ormaza
9445264f5f
[IMP] web_widget_x2many_2d_matrix: black, isort, prettier
2022-02-18 09:33:22 +01:00
Sylvain LE GAL
2ee1c27dae
[FIX] web_widget_x2many_2d_matrix: remove console.log
2022-02-18 09:33:22 +01:00
Saran440
c04bbcb411
[IMP] web_widget_x2many_2d_matrix: black, isort, prettier
2022-02-18 09:33:22 +01:00
Alexandre Díaz
12cc1e4980
[IMP] web_widget_x2many_2d_matrix: Debug mode
2022-02-18 09:33:22 +01:00
Adrià Gil Sorribes
0b44b484f6
[13.0][MIG] web_widget_x2many_2d_matrix
2022-02-18 09:33:22 +01:00
Adrià Gil Sorribes
80f63ca781
[IMP] web_widget_x2many_2d_matrix: black, isort
2022-02-18 09:33:22 +01:00
Pablo Fuentes
355e491c2c
[FIX] web_widget_x2many_2d_matrix: Ensure lines order
...
As objects are unordered collections of properties, we ensure incoming lines order by using lists
2022-02-18 09:33:22 +01:00
Pablo Fuentes
be2c2aa71f
[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
2022-02-18 09:33:22 +01:00
Alexandre Díaz
337a2b72af
[FIX] web_widget_x2many_2d_matrix: Force render in list mode on mobile
2022-02-18 09:33:22 +01:00
Pedro M. Baeza
8f1db7f5fa
Revert "[FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens"
...
This reverts commit 10971ad68e
.
2022-02-18 09:33:22 +01:00
Alexandre Díaz
9aef7f1019
[FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens
2022-02-18 09:33:22 +01:00
Holger Brunn
7d692504dc
[ADD] detect if used field type can be aggregated
...
fixes #1365
2022-02-18 09:33:22 +01:00
tarteo
acc4625875
[FIX] web_widget_x2many_2d_matrix: Use widget for formatting aggregates
2022-02-18 09:33:22 +01:00
Alexey Pelykh
c42b87bdf7
[IMP] web_widget_x2many_2d_matrix: center header cell
2022-02-18 09:33:22 +01:00
Alexey Pelykh
71654f1fc3
[FIX] web_widget_x2many_2d_matrix: total cell calculation
2022-02-18 09:33:22 +01:00
Alexey Pelykh
31861c7bf2
[FIX] web_widget_x2many_2d_matrix: _renderBodyCell + _renderAggregateColCells
2022-02-18 09:33:22 +01:00
Pedro M. Baeza
66dfcbbc9a
[FIX] web_widget_x2many_2d_matrix: Closing parenthesis
2022-02-18 09:33:22 +01:00
Jordi Ballester Alomar
e7b5c57901
web_widget_x2many_matrix: fix issue with limit of records
2022-02-18 09:33:22 +01:00
Dennis Sluijk
d5368b4693
[IMP] web_widget_x2many_2d_matrix: Total of all rows ( #1043 )
2022-02-18 09:33:22 +01:00
Jairo Llopis
426253935e
[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.
2022-02-18 09:33:22 +01:00
Jairo Llopis
b18ec39b9b
[FIX] web_widget_x2many_2d_matrix: Enable keyboard navigation
2022-02-18 09:33:22 +01:00
Jairo Llopis
71f2d864f7
[FIX] web_widget_x2many_2d_matrix: Fix linters
2022-02-18 09:33:22 +01:00
mreficent
eab2efc6d0
[FIX] Make matrix editable depending of the status of the parent
2022-02-18 09:33:22 +01:00
Akim Juillerat
bb1652da41
[11.0] x2m matrix widget: Fix display of widget when called in onchange
...
Add nicer message when there are no values to display
2022-02-18 09:33:22 +01:00
Simone Orsi
d0afa41c48
[MIG+REF][11] web_widget_x2many_2d_matrix
...
The widget has been completely refactored
to benefit from the new MVC paradigm introduced in v11.
2022-02-18 09:33:22 +01:00
Artem Kostyuk
70db2e4c43
[11][MIG] web_widget_x2many_2d_matrix WIP
2022-02-18 09:33:22 +01:00
Richard deMeester
fdd7d6a5c9
[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
2022-02-18 09:33:22 +01:00
jesusVMayor
ace6e2e833
Migration of web_widget_x2many_2d_matrix to 10.0
2022-02-18 09:33:22 +01:00
Pedro M. Baeza
fb31c0a7b7
[FIX] web_widget_x2many_2d_matrix: Init correctly the view
2022-02-18 09:33:22 +01:00
Pedro M. Baeza
f55c2f2602
[IMP] web_widget_x2many_2d_matrix: Remove unneeded code
2022-02-18 09:33:22 +01:00
Pedro M. Baeza
081cf931f1
[IMP] web_widget_x2many_2d_matrix: Better options parsing
2022-02-18 09:33:22 +01:00
Pedro M. Baeza
500035ee37
[FIX] web_widget_x2many_2d_matrix: Use existing value in load_views
2022-02-18 09:33:22 +01:00
Pedro M. Baeza
ec59e753c5
[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.
2022-02-18 09:33:22 +01:00
Jairo Llopis
60a71e5e20
[IMP] web_widget_x2many_2d_matrix: Use new JS modularized API.
2022-02-18 09:33:22 +01:00
Pedro M. Baeza
e3375644cf
[MIG] web_widget_x2many_2d_matrix: Migration to 9.0
2022-02-18 09:33:22 +01:00
Pedro M. Baeza
c8ee9c02ae
[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.
2022-02-18 09:33:22 +01:00
Holger Brunn
6d9ec8eb55
[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
2022-02-18 09:33:22 +01:00
Holger Brunn
78ef5f067f
[FIX] also reinitialize totals
2022-02-18 09:33:22 +01:00
Holger Brunn
b2ac1b5407
[FIX] support rerendering after virtual ids change
...
this is necessary for correct operation after creating new records
2022-02-18 09:33:22 +01:00
Holger Brunn
9ce4562396
[IMP] better modularity
2022-02-18 09:33:22 +01:00
Holger Brunn
bea6f42160
[IMP] use semantic css classes instead of element names
...
[RFR] and being on it, make reacting to changes in overrides simple
2022-02-18 09:33:22 +01:00
Holger Brunn
5131dea7cf
[ADD] validation
...
[IMP] write formatted value to back to input
2022-02-18 09:33:22 +01:00
Holger Brunn
ddb18f4db9
[FIX] setup focus
2022-02-18 09:33:22 +01:00
Holger Brunn
8c2df69691
[IMP] pass computed totals to inheriting function
2022-02-18 09:33:22 +01:00
Holger Brunn
da1512e65c
[FIX] update readonly value after editing
2022-02-18 09:33:22 +01:00
Holger Brunn
5f718facd0
[IMP] support changing readonly state
2022-02-18 09:33:22 +01:00
Holger Brunn
08d687be94
[IMP] handle readonly flag
...
[ADD] show grand total
[IMP] classify floats as floats
2022-02-18 09:33:21 +01:00
Holger Brunn
9b7870d35b
[ADD] allow to open linked record
...
of one of the axes is a many2one field
2022-02-18 09:33:21 +01:00
Holger Brunn
170c7d94b2
[FIX] use odoo's parse_value
2022-02-18 09:33:21 +01:00
Holger Brunn
79e09dd753
[ADD] web_widget_x2many_2d_matrix
2022-02-18 09:33:21 +01:00