[FIX] web: fix wrapping of many2one in list view

Before this fix, the many2one text in the list view was not wrapping.
After this fix, the text will wrap according to the available space
(managed automatically by the browser).

closes odoo/odoo#34345

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
This commit is contained in:
Vincent Schippefilt
2019-06-25 08:34:11 +00:00
parent fbd874368a
commit 793933a128
2 changed files with 8 additions and 1 deletions
@@ -29,6 +29,7 @@ var FIELD_CLASSES = {
integer: 'o_list_number',
monetary: 'o_list_number',
text: 'o_list_text',
many2one: 'o_list_many2one',
};
var ListRenderer = BasicRenderer.extend({
+7 -1
View File
@@ -30,6 +30,10 @@
&.o_list_text {
white-space: pre-wrap;
}
&.o_list_many2one {
white-space: pre-wrap;
}
}
tfoot {
@@ -173,7 +177,9 @@
.o_list_record_remove_header, .o_handle_cell {
width: 32px;
}
&>tbody>tr>td.o_list_many2one {
white-space: nowrap;
}
// checkboxes in editable lists should be clickable and activate the row
.o_data_row:not(.o_selected_row) .o_data_cell {
.custom-checkbox:not(.o_readonly_modifier) {