From 05d304851194ab1bbdd8af8e0d166091367b395d Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Tue, 7 May 2019 09:14:56 +0000 Subject: [FIX] web: correctly display list column name Rev. odoo/odoo@5dc971b introduced a `description` attribute on AbstractField. Sadly, the attribute was already used for something else (in `handle` and a widget in asset, to hide the column name). So the widget new description is now displayed in the list header (instead of the field name). A new attribute `noLabel` has been now added on AbstractField (currently only used in list) to fill the same purpose as the previous `description`. Task 1981757 closes odoo/odoo#33060 Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/js/fields/basic_fields.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/js/fields/basic_fields.js') diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index 963f1ae4cea..2330307b7a9 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -1185,6 +1185,7 @@ var ListFieldText = FieldText.extend({ */ var HandleWidget = AbstractField.extend({ description: _lt("Handle"), + noLabel: true, className: 'o_row_handle fa fa-arrows ui-sortable-handle', widthFactor: 0, tagName: 'span', -- cgit v1.2.3