gaikaz
7578e1bf57
web_widget_x2many_2d_matrix: Refactor JS bool parsing
2020-06-18 16:59:18 +03:00
gaikaz
74559098b4
web_widget_x2many_2d_matrix: Fix show_column_totals option
...
Commit a5e6acc3
introduced a bug, where show_column_totals="0" wouldn't work.
This is because JS ternary operator took node's attribute value as part of the condition.
As an example simplified JS code (before change):
`'0' || true ? '1' : ''` -> `'1'`
And this is what was probably meant originally (after change)
`'0' || (true ? '1' : '')` -> `'0'`
2020-06-17 18:14:11 +03:00
Pablo Fuentes
b5fc06dc6f
[FIX] web_widget_x2many_2d_matrix: Ensure lines order
...
As objects are unordered collections of properties, we ensure incoming lines order by using lists
2020-01-28 15:09:01 +01:00
Alexandre Díaz
1b5c48cb72
[IMP] web_widget_x2many_matrix: Sticky header, footer rows and main, totals columns
2019-12-11 16:23:56 +01:00
OCA-git-bot
cc5c64dfb2
Merge PR #1404 into 12.0
...
Signed-off-by pedrobaeza
2019-12-09 20:09:27 +00:00
Pablo Fuentes
9778b0d4a6
[FIX] web_widget_x2many_2d_matrix: Wrong widget
...
In previous versions _setSubViewLimit was defined at AbstractView widget but in v12 is defined at FormView widget
2019-11-22 18:07:25 +01:00
Alexandre Díaz
6814273fa4
[FIX] web_widget_x2many_2d_matrix: Force render in list mode on mobile
2019-10-30 10:46:37 +01:00
Pedro M. Baeza
3f07f00ef2
Revert "[FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens"
...
This reverts commit 10971ad68e
.
2019-10-14 15:01:59 +02:00
Alexandre Díaz
10971ad68e
[FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens
2019-10-11 20:09:23 +02:00
Holger Brunn
a5e6acc3a6
[ADD] detect if used field type can be aggregated
...
fixes #1365
2019-09-15 06:11:59 +02:00
tarteo
dad7313c28
[FIX] web_widget_x2many_2d_matrix: Padding in aggregate row
...
[FIX] Padding in aggregate row
2019-04-25 12:04:27 +02:00
tarteo
8820e290c3
[FIX] web_widget_x2many_2d_matrix: Use widget for formatting aggregates
2019-04-24 15:40:03 +02:00
Alexey Pelykh
c3d5fdf82d
[IMP] web_widget_x2many_2d_matrix: center header cell
2019-02-19 15:16:21 +01:00
Alexey Pelykh
6ca36a4b36
[FIX] web_widget_x2many_2d_matrix: total cell calculation
2019-02-05 09:03:13 +02:00
Alexey Pelykh
343d0560d5
[FIX] web_widget_x2many_2d_matrix: _renderBodyCell + _renderAggregateColCells
2018-12-10 23:56:23 +02:00
Pedro M. Baeza
fba72698ca
[FIX] web_widget_x2many_2d_matrix: Closing parenthesis
2018-11-20 08:34:56 +00:00
Jordi Ballester Alomar
c90a414c93
web_widget_x2many_matrix: fix issue with limit of records
2018-11-20 08:34:56 +00:00
Dennis Sluijk
58e22f173f
[IMP] web_widget_x2many_2d_matrix: Total of all rows ( #1043 )
2018-11-20 08:34:56 +00:00
Jairo Llopis
ef60996e88
[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-11-20 08:34:56 +00:00
Jairo Llopis
f1278e4ba6
[FIX] web_widget_x2many_2d_matrix: Enable keyboard navigation
2018-11-20 08:34:56 +00:00
Jairo Llopis
c83ef4a9fa
[FIX] web_widget_x2many_2d_matrix: Fix linters
2018-11-20 08:34:56 +00:00
mreficent
5be63c90b8
[FIX] Make matrix editable depending of the status of the parent
2018-11-20 08:34:56 +00:00
Akim Juillerat
e3483010a2
[11.0] x2m matrix widget: Fix display of widget when called in onchange
...
Add nicer message when there are no values to display
2018-11-20 08:34:56 +00:00
Simone Orsi
054741ab11
[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-11-20 08:34:56 +00:00
Artem Kostyuk
48f1dc3a6f
[11][MIG] web_widget_x2many_2d_matrix WIP
2018-11-20 08:34:56 +00:00
Richard deMeester
cb74aab0cd
[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-11-20 08:34:56 +00:00
jesusVMayor
7ff2c149f2
Migration of web_widget_x2many_2d_matrix to 10.0
2018-11-20 08:34:56 +00:00
Pedro M. Baeza
3441b0f2b5
[FIX] web_widget_x2many_2d_matrix: Init correctly the view
2018-11-20 08:34:56 +00:00
Pedro M. Baeza
22e3a6834d
[IMP] web_widget_x2many_2d_matrix: Remove unneeded code
2018-11-20 08:34:56 +00:00
Pedro M. Baeza
75ba3f6f58
[IMP] web_widget_x2many_2d_matrix: Better options parsing
2018-11-20 08:34:56 +00:00
Pedro M. Baeza
6bc158324f
[FIX] web_widget_x2many_2d_matrix: Use existing value in load_views
2018-11-20 08:34:56 +00:00
Pedro M. Baeza
9a2abbc479
[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-11-20 08:34:56 +00:00
Jairo Llopis
3d7183062b
[IMP] web_widget_x2many_2d_matrix: Use new JS modularized API.
2018-11-20 08:34:56 +00:00
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