Commit Graph

63 Commits

Author SHA1 Message Date
Sylvain LE GAL
a2e234ff13 [FIX] web_widget_x2many_2d_matrix: remove console.log 2021-09-09 19:52:17 +02:00
OCA-git-bot
f56ff31de4 [UPD] README.rst 2021-02-22 16:29:01 +00:00
Saran440
b0f3bb944f [IMP] web_widget_x2many_2d_matrix: black, isort, prettier 2020-11-13 10:59:18 +07:00
Alexey Pelykh
0e8d745599 [UPD] Brainbean Apps => CorporateHub 2020-11-13 10:59:15 +07:00
Alexandre Díaz
cd077b85a4 [IMP] web_widget_x2many_2d_matrix: Debug mode 2020-11-13 10:59:09 +07:00
OCA Transbot
ce4bec7d21 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-13.0/web-13.0-web_widget_x2many_2d_matrix
Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_widget_x2many_2d_matrix/
2020-11-13 10:59:07 +07:00
Adrià Gil Sorribes
cdc02e9caa [13.0][MIG] web_widget_x2many_2d_matrix 2020-11-13 10:59:01 +07:00
Adrià Gil Sorribes
c93cfe088b [IMP] web_widget_x2many_2d_matrix: black, isort 2020-11-13 10:59:01 +07:00
Pablo Fuentes
4d1b8b9c01 [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-11-13 10:59:01 +07:00
Alexandre Díaz
7068db632d [IMP] web_widget_x2many_matrix: Sticky header, footer rows and main, totals columns 2020-11-13 10:58:57 +07:00
Pablo Fuentes
42ab487a2f [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
2020-11-13 10:58:51 +07:00
Alexandre Díaz
b76315d6e3 [FIX] web_widget_x2many_2d_matrix: Force render in list mode on mobile 2020-11-13 10:58:51 +07:00
Pedro M. Baeza
b1a6fb96aa Revert "[FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens"
This reverts commit 10971ad68e.
2020-11-13 10:58:51 +07:00
Alexandre Díaz
4fafb4c6be [FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens 2020-11-13 10:58:48 +07:00
Holger Brunn
38a523ad78 [ADD] detect if used field type can be aggregated
fixes #1365
2020-11-13 10:58:45 +07:00
gslabit
e4aeca4b1f Translated using Weblate (Italian)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-12.0/web-12.0-web_widget_x2many_2d_matrix
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_x2many_2d_matrix/it/
2020-11-13 10:58:22 +07:00
tarteo
16f07da066 [FIX] web_widget_x2many_2d_matrix: Padding in aggregate row
[FIX] Padding in aggregate row
2020-11-13 10:58:18 +07:00
tarteo
d526653e7e [FIX] web_widget_x2many_2d_matrix: Use widget for formatting aggregates 2020-11-13 10:58:18 +07:00
Alexey Pelykh
ed6d6aebc3 [IMP] web_widget_x2many_2d_matrix: center header cell 2020-11-13 10:58:11 +07:00
Alexey Pelykh
e6c8a42647 [FIX] web_widget_x2many_2d_matrix: total cell calculation 2020-11-13 10:58:11 +07:00
Alexey Pelykh
23a2265fac [FIX] web_widget_x2many_2d_matrix: _renderBodyCell + _renderAggregateColCells 2020-11-13 10:58:06 +07:00
Alexey Pelykh
07fb8c14a2 [12.0][FIX] web_widget_x2many_2d_matrix: README 2020-11-13 10:57:57 +07:00
Alexey Pelykh
ebc47dd74c [MIG] web_widget_x2many_2d_matrix: Migration to 12.0 2020-11-13 10:57:57 +07:00
Pedro M. Baeza
b5fcda3648 [FIX] web_widget_x2many_2d_matrix: Closing parenthesis 2020-11-13 10:57:57 +07:00
Jordi Ballester Alomar
a97e264182 web_widget_x2many_matrix: fix issue with limit of records 2020-11-13 10:57:57 +07:00
Dennis Sluijk
e3de0d49c1 [IMP] web_widget_x2many_2d_matrix: Total of all rows (#1043) 2020-11-13 10:57:57 +07:00
Jairo Llopis
f51faf036e [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.
2020-11-13 10:57:54 +07:00
Jairo Llopis
05509c568c [FIX] web_widget_x2many_2d_matrix: Enable keyboard navigation 2020-11-13 10:57:54 +07:00
Jairo Llopis
9ce5fee34b [FIX] web_widget_x2many_2d_matrix: Fix linters 2020-11-13 10:57:54 +07:00
mreficent
5a7d7be81b [FIX] Make matrix editable depending of the status of the parent 2020-11-13 10:57:50 +07:00
Akim Juillerat
f4cceb85b1 [11.0] x2m matrix widget: Fix display of widget when called in onchange
Add nicer message when there are no values to display
2020-11-13 10:57:50 +07:00
Simone Orsi
3a1ae72bec [MIG+REF][11] web_widget_x2many_2d_matrix
The widget has been completely refactored
to benefit from the new MVC paradigm introduced in v11.
2020-11-13 10:57:50 +07:00
Artem Kostyuk
37f4c9b2af [11][MIG] web_widget_x2many_2d_matrix WIP 2020-11-13 10:57:50 +07:00
Richard deMeester
3ea8cada70 [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
2020-11-13 10:57:42 +07:00
jesusVMayor
f61de5bf90 Migration of web_widget_x2many_2d_matrix to 10.0 2020-11-13 10:57:42 +07:00
Pedro M. Baeza
a642f1ef0e [FIX] web_widget_x2many_2d_matrix: Init correctly the view 2020-11-13 10:57:42 +07:00
Pedro M. Baeza
f4227b33d0 [IMP] web_widget_x2many_2d_matrix: Remove unneeded code 2020-11-13 10:57:42 +07:00
Pedro M. Baeza
1ba9a39c99 [IMP] web_widget_x2many_2d_matrix: Better options parsing 2020-11-13 10:57:42 +07:00
Pedro M. Baeza
3666cd635d [FIX] web_widget_x2many_2d_matrix: Use existing value in load_views 2020-11-13 10:57:42 +07:00
Pedro M. Baeza
c850393872 [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.
2020-11-13 10:57:42 +07:00
Jairo Llopis
d1128c145d [IMP] web_widget_x2many_2d_matrix: Use new JS modularized API. 2020-11-13 10:57:42 +07:00
Pedro M. Baeza
ceab0655dd [MIG] web_widget_x2many_2d_matrix: Migration to 9.0 2020-11-13 10:57:42 +07:00
Pedro M. Baeza
e35a2731ff [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.
2020-11-13 10:57:42 +07:00
Holger Brunn
4397e84221 [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
2020-11-13 10:57:42 +07:00
Holger Brunn
c83bc0b87a [FIX] also reinitialize totals 2020-11-13 10:23:49 +07:00
Holger Brunn
52df7dc0f0 [FIX] support rerendering after virtual ids change
this is necessary for correct operation after creating new records
2020-11-13 10:23:49 +07:00
Holger Brunn
11d868fb78 [IMP] better modularity 2020-11-13 10:23:49 +07:00
Holger Brunn
83e15b08f2 [IMP] icon 2020-11-13 10:23:49 +07:00
Holger Brunn
0ac1f53fd3 [IMP] add screenshot, example in README 2020-11-13 10:23:49 +07:00
Holger Brunn
240c664886 [IMP] use semantic css classes instead of element names
[RFR] and being on it, make reacting to changes in overrides simple
2020-11-13 10:23:49 +07:00