Manage help attribute on tree views

issue6333
review32111002
This commit is contained in:
Sergi Almacellas Abellana
2017-03-31 09:37:30 +02:00
parent 367242ab53
commit c549a3aeb8
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Manage help attribute on tree views
* Manage color attribute on graph view
* Add support for size on Many2Many
* Allow to show plain text in password field
+6 -1
View File
@@ -99,6 +99,11 @@
label.addClass('editable');
}
}
if (column.attributes.help) {
label.data('toggle', 'tooltip');
label.attr('title', column.attributes.help);
label.tooltip();
}
if (column.sortable) {
var arrow = jQuery('<span/>');
label.append(arrow);
@@ -153,7 +158,7 @@
'add_remove', 'sort', 'context', 'filename',
'autocomplete', 'translate', 'create', 'delete',
'selection_change_with', 'schema_model', 'required',
'readonly'];
'readonly', 'help'];
for (i in attribute_names) {
var attr = attribute_names[i];
if ((attr in model.fields[name].description) &&