3
0
Fork 0
Commit Graph

28 Commits (d3a703d48e51c9bc90ea0dc6d646565294c3d2d6)

Author SHA1 Message Date
mreficent 951e2f2fc6 [FIX] Make matrix editable depending of the status of the parent 2018-05-02 15:28:31 +02:00
Akim Juillerat c909bc3f79 [11.0] x2m matrix widget: Fix display of widget when called in onchange
Add nicer message when there are no values to display
2018-04-20 10:07:08 +02:00
Simone Orsi 69cc921ab3 [MIG+REF][11] web_widget_x2many_2d_matrix
The widget has been completely refactored
to benefit from the new MVC paradigm introduced in v11.
2018-03-28 12:47:39 +02:00
Artem Kostyuk 75f79755c0 [11][MIG] web_widget_x2many_2d_matrix WIP 2018-03-27 17:16:11 +02:00
Richard deMeester 92c1f86066 [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
2018-03-27 17:16:11 +02:00
jesusVMayor 47c55d66b4 Migration of web_widget_x2many_2d_matrix to 10.0 2018-03-27 17:16:11 +02:00
Pedro M. Baeza 491b210416 [FIX] web_widget_x2many_2d_matrix: Init correctly the view 2018-03-27 17:16:11 +02:00
Pedro M. Baeza a517b40c87 [IMP] web_widget_x2many_2d_matrix: Remove unneeded code 2018-03-27 17:16:11 +02:00
Pedro M. Baeza 466561181f [IMP] web_widget_x2many_2d_matrix: Better options parsing 2018-03-27 17:16:11 +02:00
Pedro M. Baeza 388fa3dd4b [FIX] web_widget_x2many_2d_matrix: Use existing value in load_views 2018-03-27 17:16:11 +02:00
Pedro M. Baeza 3123f7fa30 [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.
2018-03-27 17:16:11 +02:00
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 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 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 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 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 0dba5d648f [ADD] web_widget_x2many_2d_matrix 2018-03-27 17:16:11 +02:00