diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-09-07 09:23:58 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-09-07 09:23:58 +0200 |
| commit | 0b17356d23de5ca0f3d650d303fc68370e08caee (patch) | |
| tree | 3cda103c7a5be39c0f1166770393cf34212d4eab /addons/web/static/src/js | |
| parent | 1ffd3f324d5e6960a04f92c5242374189836f31a (diff) | |
[FIX] report action management: correctly download reports
bzr revid: xmo@openerp.com-20110907072358-94qnrzx1ww951shv
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/views.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 936106ac103..e351d49c6eb 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -125,11 +125,11 @@ openerp.web.ActionManager = openerp.web.Widget.extend({ (this.client_widget = new ClientWidget(this, action.params)).appendTo(this); }, ir_actions_report_xml: function(action) { - this.rpc('/web/report/get_report', { - action: action, - context: {} - }).then(function(result) { - debugger; + $.blockUI(); + this.session.get_file({ + url: '/web/report', + data: {action: JSON.stringify(action)}, + complete: $.unblockUI }); } }); |
