projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99f63ac
)
[FIX] listview: bug in binary column download link rendering
author
Xavier Morel
<xmo@openerp.com>
Fri, 22 Feb 2013 09:36:21 +0000
(10:36 +0100)
committer
Xavier Morel
<xmo@openerp.com>
Fri, 22 Feb 2013 09:36:21 +0000
(10:36 +0100)
bzr revid: xmo@openerp.com-
20130222093621
-crdgl79nl93zejvh
addons/web/static/src/js/view_list.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/view_list.js
b/addons/web/static/src/js/view_list.js
index
27e2c88
..
d23bedf
100644
(file)
--- a/
addons/web/static/src/js/view_list.js
+++ b/
addons/web/static/src/js/view_list.js
@@
-2212,7
+2212,7
@@
instance.web.list.Binary = instance.web.list.Column.extend({
if (value && value.substr(0, 10).indexOf(' ') == -1) {
download_url = "data:application/octet-stream;base64," + value;
} else {
- download_url = this.session.url('/web/binary/saveas', {model: options.model, field: this.id, id: options.id});
+ download_url = instance.session.url('/web/binary/saveas', {model: options.model, field: this.id, id: options.id});
if (this.filename) {
download_url += '&filename_field=' + this.filename;
}