Commit Graph

23 Commits

Author SHA1 Message Date
Jairo Llopis
d3cd13a5a8 [IMP] web_widget_x2many_2d_matrix: Use new JS modularized API. 2018-03-27 17:16:11 +02:00
Pedro M. Baeza
e3a2ca214f [MIG] web_widget_x2many_2d_matrix: Migration to 9.0 2018-03-27 17:16:11 +02:00
Pedro M. Baeza
2a2439b848 [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.
2018-03-27 17:16:11 +02:00
Holger Brunn
3841f92900 [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
2018-03-27 17:16:11 +02:00
Holger Brunn
f59dfc378f [FIX] also reinitialize totals 2018-03-27 17:16:11 +02:00
Holger Brunn
052a12ac36 [FIX] support rerendering after virtual ids change
this is necessary for correct operation after creating new records
2018-03-27 17:16:11 +02:00
Holger Brunn
d797ed948d [IMP] better modularity 2018-03-27 17:16:11 +02:00
Holger Brunn
da2ea7d2a6 [IMP] icon 2018-03-27 17:16:11 +02:00
Holger Brunn
48b086e6bf [IMP] add screenshot, example in README 2018-03-27 17:16:11 +02:00
Holger Brunn
81181c5ee6 [IMP] use semantic css classes instead of element names
[RFR] and being on it, make reacting to changes in overrides simple
2018-03-27 17:16:11 +02:00
Holger Brunn
e63ade6193 [IMP] we don't need data-x and data-y on the input 2018-03-27 17:16:11 +02:00
Holger Brunn
d5c0a478b9 [ADD] validation
[IMP] write formatted value to back to input
2018-03-27 17:16:11 +02:00
Holger Brunn
6eb62bb572 [FIX] setup focus 2018-03-27 17:16:11 +02:00
Holger Brunn
3cc76e9048 [FIX] replace therp icon 2018-03-27 17:16:11 +02:00
Holger Brunn
6cc4fe601f [IMP] pass computed totals to inheriting function 2018-03-27 17:16:11 +02:00
Holger Brunn
9590e24f5a [FIX] update readonly value after editing 2018-03-27 17:16:11 +02:00
Holger Brunn
3abe635c64 [IMP] support changing readonly state 2018-03-27 17:16:11 +02:00
Holger Brunn
3b75298142 [IMP] collapse whitespace in rows 2018-03-27 17:16:11 +02:00
Holger Brunn
7fff989504 [IMP] handle readonly flag
[ADD] show grand total
[IMP] classify floats as floats
2018-03-27 17:16:11 +02:00
Holger Brunn
6f84c7577c [ADD] allow to open linked record
of one of the axes is a many2one field
2018-03-27 17:16:11 +02:00
Holger Brunn
8acfc51d7f [FIX] use odoo's parse_value 2018-03-27 17:16:11 +02:00
Holger Brunn
d545ae5412 [IMP] show column totals in table footer 2018-03-27 17:16:11 +02:00
Holger Brunn
0dba5d648f [ADD] web_widget_x2many_2d_matrix 2018-03-27 17:16:11 +02:00