Merge lp:~openerp-dev/openerp-web/7.0-opw-603113-msh into lp:openerp-web/7.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openerp-web/7.0-opw-603113-msh |
Merge into: | lp:openerp-web/7.0 |
Diff against target: |
53 lines (+14/-6) 2 files modified
addons/web/controllers/main.py (+12/-5) addons/web/static/src/js/data_export.js (+2/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/7.0-opw-603113-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) | Pending | ||
Xavier (Open ERP) | Pending | ||
Martin Trigaux (OpenERP) | Pending | ||
Review via email: mp+203745@code.launchpad.net |
Description of the change
Hello,
Export using saved field list gives wrong header for relational fields, which creates problem while import same exported file.
Demo: Go to any view say for example Sale Order and then just select any record and then open Export dialog, select some fields which are kind of relational field and then just Export to file.
Now without closing dialog save those fields, close the dialog and re-open export dialog, from saved list open fields list which just saved and then export data to file.
Now compare label of the header for both files, file which we created using Saved field list will not have /id for relational field, if header are without /id in relational field then it may create issue while importing the same file.
Thanks.
Unmerged revisions
- 4137. By Mohammed Shekha(OpenERP)<email address hidden>
-
[FIX]Web Export: Refixed the issue of Export using saved field list gives wrong header for relational fields, which creates problem while import same exported file, also fixed the issue of fields order changed in saved fields due to revision 4115.
Hello,
Along with issue of saved fields returning field's header wrong also fixed the issue of saved fields changes the order of the fields while re-fetching saved field list.
Demo: Export in any view -> select some fields and Save field list anf then reload that saved field list, check order of the saved field list has been changed, this does not create any block issue but while exporting order of the field is important because sometimes export is going to be matched with another system's data.
Thanks.