Commit Graph

38 Commits (add50a88dd8b90554a46046daebf43f7e10d11a7)

Author SHA1 Message Date
tarteo 270f4c6fb6 [FIX] web_widget_x2many_2d_matrix: Use widget for formatting aggregates 2019-04-23 11:54:33 +02:00
Pedro M. Baeza 899f01fd9d
[FIX] web_widget_x2many_2d_matrix: Closing parenthesis 2018-11-09 18:30:23 +01:00
Jordi Ballester Alomar f230ffcfe7 web_widget_x2many_matrix: fix issue with limit of records 2018-11-09 16:50:55 +01:00
Dennis Sluijk 4fea08d468 [IMP] web_widget_x2many_2d_matrix: Total of all rows (#1043) 2018-09-20 16:05:34 +02:00
Jairo Llopis 0efe75de7c [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.
2018-08-27 16:57:15 +02:00
Jairo Llopis 78beda0546 [FIX] web_widget_x2many_2d_matrix: Enable keyboard navigation 2018-08-24 09:45:24 +01:00
Jairo Llopis a54ca01096 [FIX] web_widget_x2many_2d_matrix: Fix linters 2018-08-24 08:11:45 +01:00
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 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 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