Merge lp:~stefan-opener/ocb-web/7.0-lp1167429-binary_fields_in_o2m_representation_and_unnecessary_preloading into lp:ocb-web
Proposed by
Stefan Rijnhart (Opener)
Status: | Merged |
---|---|
Merged at revision: | 4170 |
Proposed branch: | lp:~stefan-opener/ocb-web/7.0-lp1167429-binary_fields_in_o2m_representation_and_unnecessary_preloading |
Merge into: | lp:ocb-web |
Diff against target: |
48 lines (+8/-8) 3 files modified
addons/web/static/src/js/data.js (+1/-1) addons/web/static/src/js/view_form.js (+4/-0) addons/web/static/src/js/view_list.js (+3/-7) |
To merge this branch: | bzr merge lp:~stefan-opener/ocb-web/7.0-lp1167429-binary_fields_in_o2m_representation_and_unnecessary_preloading |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | Approve | ||
Pedro Manuel Baeza | Approve | ||
Holger Brunn (Therp) | code review | Approve | |
Review via email: mp+210432@code.launchpad.net |
Description of the change
Automatically derived from https:/
Fix binary fields in one2many widgets:
- Don't retrieve the binary contents just to display the size, but pass context with bin_size=True instead
- Always pass filename in download link
Combination of patches from the bug report from Enrico Ganzaroli, Cedric Le Brouster and the last commit from myself which actually prevents the preloading of the binaries.
To post a comment you must log in.
I was puzzled by 36f at first, but that's indeed not necessary if there's no preloading