diff options
| author | Martin Geubelle <mge@odoo.com> | 2019-05-07 09:12:17 +0000 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2019-05-07 09:34:28 +0000 |
| commit | db64af9b9cb45cc8ad7f255dd44bccccfbc298be (patch) | |
| tree | 827fc94c4cbb4824c6b916bfb18f6459fda26520 /addons/web/static/src/js | |
| parent | 19a2797b2d251843d8886f633df1082e7076c298 (diff) | |
[FIX] web: correctly display header tooltips in list
A traceback occured when displaying the tooltip (only visible in debug) on a list
view header if the field had a `widget` attribute (introduced in rev. odoo/odoo@5dc971b).
The issue here was linked to the fact that a widget is not always rendered in list view
(compared to form view) so the `Widget` property in the attributes was not there.
Task 1981757
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/views/list/list_renderer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/list/list_renderer.js b/addons/web/static/src/js/views/list/list_renderer.js index 4d8be05d252..f6bd08e9278 100644 --- a/addons/web/static/src/js/views/list/list_renderer.js +++ b/addons/web/static/src/js/views/list/list_renderer.js @@ -716,7 +716,7 @@ var ListRenderer = BasicRenderer.extend({ name: name, string: description || name, record: this.state, - attrs: node.attrs, + attrs: _.extend({}, node.attrs, this.state.fieldsInfo.list[name]), }; this._addFieldTooltip(fieldDescr, $th); } else { |
