From eaf62e948ad8a075ded94c62abf45780f907ed07 Mon Sep 17 00:00:00 2001 From: jvm-odoo Date: Wed, 18 Mar 2020 13:55:37 +0000 Subject: [PATCH] [FIX] web: fix grouping content overlap Issue - Be in multicompany - Have a company with a long name - Install Accounting - Settings > Currencies > Dollars - Click on the smart button "Rates" - Group by company Company name and rate overlap Cause In `_computeDefaultWidths`, we use the method `_getColumnWidth` which returns a width depending on the field type. When you use group by, the fields order doesn't change so the company name in the group line have the width of the date field (92px) and there is nothing that limits the place that the string can takes so there is overflow. Solution As it seems to be something very accurate, I think the safest solution would be to use the `o-text-overflow` saas mixin. OPW-2218143 closes odoo/odoo#48318 X-original-commit: 2898dd4577e12326cbe83dce9fdbdef0e32d51e6 Signed-off-by: Jason Van Malder (jvm) --- addons/web/static/src/scss/list_view.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/scss/list_view.scss b/addons/web/static/src/scss/list_view.scss index 951730f1569..2c864a25613 100644 --- a/addons/web/static/src/scss/list_view.scss +++ b/addons/web/static/src/scss/list_view.scss @@ -125,7 +125,7 @@ padding-bottom: ($table-cell-padding-sm*2); } .o_group_name { - white-space: nowrap; + @include o-text-overflow(table-cell); } .o_group_buttons { display: inline-block;