[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
This commit is contained in:
Kishan Gajjar
2016-11-09 15:06:12 +01:00
committed by Yannick Tivisse
parent ef9c07b0ef
commit 5a3d0fc3ff
2 changed files with 3 additions and 3 deletions
@@ -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}))
);
}
+1 -1
View File
@@ -1134,7 +1134,7 @@
tabindex="-1"> <!-- tabindex make the div focusable -->
<span t-if="field.children &amp;&amp; (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>