diff options
| author | Kishan Gajjar <kig@odoo.com> | 2016-11-08 12:36:45 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-11-09 15:06:12 +0100 |
| commit | 5a3d0fc3ffe284e663f96ec0d10399afb71550c7 (patch) | |
| tree | 15da5a9ce54814b332cef73283986edaf0efbe98 /addons/web/static | |
| parent | ef9c07b0ef2de47fe50b903c71d6c1d1b3d1ada0 (diff) | |
[IMP] web: show technical field name in export wizard by hover in debug mode
In export wizard on mouse hover display technical name of field in debug mode
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/src/js/widgets/data_export.js | 4 | ||||
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/src/js/widgets/data_export.js b/addons/web/static/src/js/widgets/data_export.js index 24fb6a41f75..30adbd64017 100644 --- a/addons/web/static/src/js/widgets/data_export.js +++ b/addons/web/static/src/js/widgets/data_export.js @@ -369,11 +369,11 @@ var DataExport = Dialog.extend({ .find('.o_expand_parent') .toggleClass('fa-plus fa-minus') .next() - .after(QWeb.render('Export.TreeItems', {'fields': records})); + .after(QWeb.render('Export.TreeItems', {'fields': records, 'debug': this.session.debug})); } else { this.$('.o_left_field_panel').empty().append( $("<div/>").addClass('o_field_tree_structure') - .append(QWeb.render('Export.TreeItems', {'fields': records})) + .append(QWeb.render('Export.TreeItems', {'fields': records, 'debug': this.session.debug})) ); } diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index f23d862a100..85e890a066e 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1134,7 +1134,7 @@ tabindex="-1"> <!-- tabindex make the div focusable --> <span t-if="field.children && (field.id).split('/').length != 3" class="o_expand_parent fa fa-plus"/> - <span class="o_tree_column"><t t-esc="field.string"/></span> + <span class="o_tree_column" t-att-title="debug and field.id or None"><t t-esc="field.string"/></span> </div> <t t-name="Export.SaveList"> <label>Save as:</label> <input type="text"/><button type="button" class="btn btn-sm btn-default">Ok</button> |
