summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2019-05-07 09:14:56 +0000
committerMartin Geubelle <mge@odoo.com>2019-05-07 09:34:28 +0000
commit05d304851194ab1bbdd8af8e0d166091367b395d (patch)
tree74e6b8bdce79cf07c44100292e0040972bb25118 /addons/web/static/src/js/fields/basic_fields.js
parentdb64af9b9cb45cc8ad7f255dd44bccccfbc298be (diff)
[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) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
-rw-r--r--addons/web/static/src/js/fields/basic_fields.js1
1 files changed, 1 insertions, 0 deletions
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',