diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-07-16 15:07:08 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-07-17 11:58:27 +0000 |
| commit | 11b1b82c09950c7b13dc848b25d71d1499a5b711 (patch) | |
| tree | 80e5303f876424ae5ea194bb39c2d418b20aaa74 /addons/web/static/src/scss | |
| parent | b2f8170d88239b5eaf04f1e3c0dcef613b78fedc (diff) | |
[FIX] web: list: do not crush text fields
Before this commit, it might happen that text field columns in list
views were completely crushed, to let space to the other columns.
This commit fixes the issue by preventing text fields from being
wrapped during the ideal column widths computation. Doing so, text
fields will take space they deserve according to their content.
They will then be wrapped if necessary, so that they aren't trimmed,
unlike e.g. char fields.
Task 2275747
closes odoo/odoo#54664
X-original-commit: 5c54111127bd99eedb4e0331aba5a0200feb461c
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/scss')
| -rw-r--r-- | addons/web/static/src/scss/list_view.scss | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/list_view.scss b/addons/web/static/src/scss/list_view.scss index 7774b73a416..9600c1c95df 100644 --- a/addons/web/static/src/scss/list_view.scss +++ b/addons/web/static/src/scss/list_view.scss @@ -55,6 +55,14 @@ } } } + &.o_list_computing_widths { + > tbody > tr > td { + &.o_list_text, // text field, className on the td + > .o_field_text { // text field with widget, className inside the td + white-space: pre !important; + } + } + } tfoot { cursor: default; |
