Allow to export model and record name of Reference fields

issue5667
review44291003
This commit is contained in:
Cédric Krier committed 2017-09-26 01:27:10 +02:00
1 parent 77a8b71c2a
commit 8c52c82dfb
2 files changed
+6

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
* Allow to export model and record name of Reference fields
* Re-position buttons on Binary/Image widget
* Improve treeview headers
* Update states of both toolbar and menu
+5
View File
@@ -102,6 +102,11 @@ class WinExport(WinCSV):
if field['type'] == 'selection':
items.insert(0, ('%s.translated' % name, field,
_('%s (string)') % string_))
elif field['type'] == 'reference':
items.insert(0, ('%s.translated' % name, field,
_('%s (model name)') % string_))
items.insert(0, ('%s/rec_name' % name, field,
_("%s (record name)") % string_))
for name, field, string_ in items:
path = prefix_field + name