diff options
| author | Jérome Maes <jem@openerp.com> | 2015-09-25 13:42:30 +0200 |
|---|---|---|
| committer | Jérome Maes <jem@openerp.com> | 2015-09-25 16:05:44 +0200 |
| commit | 8ffca196804fe235880b86d72456348752f5afa4 (patch) | |
| tree | 5f02ce8b44351ee4b4568b045da4818e5f9ce3a7 /addons/web/static/src/js/widgets | |
| parent | 3c97dbf1e10603e537e858d2c01a64ecffa4d1ca (diff) | |
[FIX] web : attachment controller got unexpected args
On webclient, on 'Attachment(s)' dropdown (form view) when clicking on an attachment to download it, a request is sent to /web/content/ with a param 't' containing the current date. This param wasn't used neither before the new controller, but the old one accept additional kwargs. The new controller crashes, and since the t parameter is not used, removing it seems better.
Diffstat (limited to 'addons/web/static/src/js/widgets')
| -rw-r--r-- | addons/web/static/src/js/widgets/sidebar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/widgets/sidebar.js b/addons/web/static/src/js/widgets/sidebar.js index 9b7d223335f..9ea15be128b 100644 --- a/addons/web/static/src/js/widgets/sidebar.js +++ b/addons/web/static/src/js/widgets/sidebar.js @@ -179,7 +179,7 @@ var Sidebar = Widget.extend({ _.each(attachments,function(a) { a.label = a.name; if(a.type === "binary") { - a.url = '/web/content/' + a.id + '?download=true&t=' + (new Date().getTime()); + a.url = '/web/content/' + a.id + '?download=true'; } }); this.items.files = attachments; |
