Commit Graph

43 Commits

Author SHA1 Message Date
OCA-git-bot
380bbe0c6f [UPD] README.rst 2020-03-05 08:17:01 +01:00
Alexey Pelykh
a1e5e48537 [12.0][FIX] web_widget_x2many_2d_matrix: README 2020-03-05 08:17:01 +01:00
Alexey Pelykh
89a35e7d91 [MIG] web_widget_x2many_2d_matrix: Migration to 12.0 2020-03-05 08:17:01 +01:00
Pedro M. Baeza
849525e48e [FIX] web_widget_x2many_2d_matrix: Closing parenthesis 2020-03-05 08:17:01 +01:00
Jordi Ballester Alomar
5dccd038ce web_widget_x2many_matrix: fix issue with limit of records 2020-03-05 08:17:01 +01:00
Dennis Sluijk
09991cb574 [IMP] web_widget_x2many_2d_matrix: Total of all rows (#1043) 2020-03-05 08:17:01 +01:00
Jairo Llopis
f39fdc94c9 [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.
2020-03-05 08:17:01 +01:00
Jairo Llopis
f5dde1577d [FIX] web_widget_x2many_2d_matrix: Enable keyboard navigation 2020-03-05 08:17:01 +01:00
Jairo Llopis
36913cd896 [FIX] web_widget_x2many_2d_matrix: Fix linters 2020-03-05 08:17:01 +01:00
mreficent
15e39d44b2 [FIX] Make matrix editable depending of the status of the parent 2020-03-05 08:17:01 +01:00
Akim Juillerat
ca213cd38e [11.0] x2m matrix widget: Fix display of widget when called in onchange
Add nicer message when there are no values to display
2020-03-05 08:17:01 +01:00
Simone Orsi
d2dafcbdeb [MIG+REF][11] web_widget_x2many_2d_matrix
The widget has been completely refactored
to benefit from the new MVC paradigm introduced in v11.
2020-03-05 08:17:01 +01:00
Artem Kostyuk
130909c7c4 [11][MIG] web_widget_x2many_2d_matrix WIP 2020-03-05 08:17:01 +01:00
Richard deMeester
307e93007e [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
2020-03-05 08:17:01 +01:00
jesusVMayor
976ea30892 Migration of web_widget_x2many_2d_matrix to 10.0 2020-03-05 08:17:01 +01:00
Pedro M. Baeza
ccdf5710ab [FIX] web_widget_x2many_2d_matrix: Init correctly the view 2020-03-05 08:17:01 +01:00
Pedro M. Baeza
4feb82659e [IMP] web_widget_x2many_2d_matrix: Remove unneeded code 2020-03-05 08:17:01 +01:00
Pedro M. Baeza
9fb5f933f8 [IMP] web_widget_x2many_2d_matrix: Better options parsing 2020-03-05 08:17:01 +01:00
Pedro M. Baeza
07518433d1 [FIX] web_widget_x2many_2d_matrix: Use existing value in load_views 2020-03-05 08:17:01 +01:00
Pedro M. Baeza
2655123d5b [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.
2020-03-05 08:17:01 +01:00
Jairo Llopis
7e25a97cef [IMP] web_widget_x2many_2d_matrix: Use new JS modularized API. 2020-03-05 08:17:01 +01:00
Pedro M. Baeza
fe7b4c3a85 [MIG] web_widget_x2many_2d_matrix: Migration to 9.0 2020-03-05 08:17:01 +01:00
Pedro M. Baeza
07e12b3f3e [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.
2020-03-05 08:17:01 +01:00
Holger Brunn
b981ecd72f [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
2020-03-05 08:17:01 +01:00
Holger Brunn
c671d3525d [FIX] also reinitialize totals 2020-03-05 08:17:01 +01:00
Holger Brunn
7d5d0d130f [FIX] support rerendering after virtual ids change
this is necessary for correct operation after creating new records
2020-03-05 08:17:01 +01:00
Holger Brunn
e4365fa24c [IMP] better modularity 2020-03-05 08:17:01 +01:00
Holger Brunn
c4cbaf52a8 [IMP] icon 2020-03-05 08:17:01 +01:00
Holger Brunn
1ad7523065 [IMP] add screenshot, example in README 2020-03-05 08:17:01 +01:00
Holger Brunn
569def98e2 [IMP] use semantic css classes instead of element names
[RFR] and being on it, make reacting to changes in overrides simple
2020-03-05 08:17:01 +01:00
Holger Brunn
0d805deb39 [IMP] we don't need data-x and data-y on the input 2020-03-05 08:17:01 +01:00
Holger Brunn
1eaf985999 [ADD] validation
[IMP] write formatted value to back to input
2020-03-05 08:17:01 +01:00
Holger Brunn
4af854c2eb [FIX] setup focus 2020-03-05 08:17:01 +01:00
Holger Brunn
fef7b3c409 [FIX] replace therp icon 2020-03-05 08:17:01 +01:00
Holger Brunn
08285bb319 [IMP] pass computed totals to inheriting function 2020-03-05 08:17:01 +01:00
Holger Brunn
2e2b2453d7 [FIX] update readonly value after editing 2020-03-05 08:17:01 +01:00
Holger Brunn
ea84a081f0 [IMP] support changing readonly state 2020-03-05 08:17:01 +01:00
Holger Brunn
82b6dc199b [IMP] collapse whitespace in rows 2020-03-05 08:17:01 +01:00
Holger Brunn
4203e2ab4c [IMP] handle readonly flag
[ADD] show grand total
[IMP] classify floats as floats
2020-03-05 08:17:01 +01:00
Holger Brunn
4a4bf0b68f [ADD] allow to open linked record
of one of the axes is a many2one field
2020-03-05 08:17:01 +01:00
Holger Brunn
fcafa6268f [FIX] use odoo's parse_value 2020-03-05 08:17:01 +01:00
Holger Brunn
d946e72e0a [IMP] show column totals in table footer 2020-03-05 08:17:01 +01:00
Holger Brunn
970cca94f3 [ADD] web_widget_x2many_2d_matrix 2020-03-05 08:17:01 +01:00