Merge lp:~therp-nl/openerp-web/6.1-fix988438-export_all_data_give_name_get into lp:openerp-web/6.1

Proposed by Stefan Rijnhart (Opener)
Status: Needs review
Proposed branch: lp:~therp-nl/openerp-web/6.1-fix988438-export_all_data_give_name_get
Merge into: lp:openerp-web/6.1
Diff against target: 13 lines (+2/-1)
1 file modified
addons/web/controllers/main.py (+2/-1)
To merge this branch: bzr merge lp:~therp-nl/openerp-web/6.1-fix988438-export_all_data_give_name_get
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+124144@code.launchpad.net

Description of the change

'Export all data' to give the result of name_get(), not the xml id

To post a comment you must log in.

Unmerged revisions

2457. By Stefan Rijnhart (Opener)

[FIX] 'Export all data' to give name_get() of related records, not xml id

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web/controllers/main.py'
2--- addons/web/controllers/main.py 2012-08-31 11:34:18 +0000
3+++ addons/web/controllers/main.py 2012-09-13 09:58:21 +0000
4@@ -1620,7 +1620,8 @@
5
6 if len(name.split('/')) < 3 and 'relation' in field:
7 ref = field.pop('relation')
8- record['value'] += '/id'
9+ if import_compat:
10+ record['value'] += '/id'
11 record['params'] = {'model': ref, 'prefix': id, 'name': name}
12
13 if not import_compat or field['type'] == 'one2many':