[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) <jvm@odoo.com>
This commit is contained in:
jvm-odoo
2020-03-25 10:06:49 +00:00
parent 5dda9a709e
commit eaf62e948a
+1 -1
View File
@@ -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;