summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_form.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-01-10 16:51:06 +0100
committerXavier Morel <xmo@openerp.com>2012-01-10 16:51:06 +0100
commit8fd07cc0b802c5bc6290a0d2bed23ecb00e9ac03 (patch)
tree5cef0aa4f22e8774c3a8ce724489dcf634cede0e /addons/web/static/src/js/view_form.js
parent658a8e97c0543a16bc93aa461293127017087d4d (diff)
parentd54a19681110663aa8016f73b70c1663cc2a2b10 (diff)
[ADD] handling of binary fields in list views
lp bug: https://launchpad.net/bugs/914267 fixed bzr revid: xmo@openerp.com-20120110155106-p3g85wbh5g4wlbdi
Diffstat (limited to 'addons/web/static/src/js/view_form.js')
-rw-r--r--addons/web/static/src/js/view_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index 622f9bba68d..89b3a97b6ed 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -3009,7 +3009,7 @@ openerp.web.form.FieldBinary = openerp.web.form.Field.extend({
on_save_as: function() {
var url = '/web/binary/saveas?session_id=' + this.session.session_id + '&model=' +
this.view.dataset.model +'&id=' + (this.view.datarecord.id || '') + '&field=' + this.name +
- '&fieldname=' + (this.node.attrs.filename || '') + '&t=' + (new Date().getTime());
+ '&filename_field=' + (this.node.attrs.filename || '') + '&t=' + (new Date().getTime());
window.open(url);
},
on_clear: function() {