Commit Graph

19 Commits

Author SHA1 Message Date
Pedro M. Baeza
ce503fc8a6 [MIG] web_widget_x2many_2d_matrix: Migration to 9.0 2018-11-20 08:34:56 +00:00
Pedro M. Baeza
7f196f715a [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-11-20 08:34:56 +00:00
Holger Brunn
323ed2bd30 [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-11-20 08:34:56 +00:00
Holger Brunn
8ff5229112 [FIX] also reinitialize totals 2018-11-20 08:34:56 +00:00
Holger Brunn
e3f3a55e05 [FIX] support rerendering after virtual ids change
this is necessary for correct operation after creating new records
2018-11-20 08:34:56 +00:00
Holger Brunn
c6962de141 [IMP] better modularity 2018-11-20 08:34:56 +00:00
Holger Brunn
8c4fa12b45 [IMP] use semantic css classes instead of element names
[RFR] and being on it, make reacting to changes in overrides simple
2018-11-20 08:34:56 +00:00
Holger Brunn
e33404dc06 [IMP] we don't need data-x and data-y on the input 2018-11-20 08:34:56 +00:00
Holger Brunn
29b3401c45 [ADD] validation
[IMP] write formatted value to back to input
2018-11-20 08:34:56 +00:00
Holger Brunn
b66e4ef04a [FIX] setup focus 2018-11-20 08:34:56 +00:00
Holger Brunn
923236dae9 [IMP] pass computed totals to inheriting function 2018-11-20 08:34:56 +00:00
Holger Brunn
dda1629c41 [FIX] update readonly value after editing 2018-11-20 08:34:56 +00:00
Holger Brunn
03c652fb0b [IMP] support changing readonly state 2018-11-20 08:34:56 +00:00
Holger Brunn
2a71992d4e [IMP] collapse whitespace in rows 2018-11-20 08:34:56 +00:00
Holger Brunn
647ba2028b [IMP] handle readonly flag
[ADD] show grand total
[IMP] classify floats as floats
2018-11-20 08:34:56 +00:00
Holger Brunn
346cef95a4 [ADD] allow to open linked record
of one of the axes is a many2one field
2018-11-20 08:34:56 +00:00
Holger Brunn
865411d234 [FIX] use odoo's parse_value 2018-11-20 08:34:56 +00:00
Holger Brunn
20d1b205a8 [IMP] show column totals in table footer 2018-11-20 08:34:56 +00:00
Holger Brunn
d6664b3bc7 [ADD] web_widget_x2many_2d_matrix 2018-11-20 08:34:56 +00:00