From f9f78f75f09e2e5be4884e06cb395c80d1dc243d Mon Sep 17 00:00:00 2001 From: "ajay javiya (OpenERP)" Date: Wed, 12 Sep 2012 16:49:43 +0530 Subject: [PATCH] [Add]: Add Unwanted changes bzr revid: aja@tinyerp.com-20120912111943-3p8tsawxqr9xtn9a --- addons/web/controllers/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 6c44455e543..d96e6b2d401 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1937,7 +1937,8 @@ class Reports(View): # maybe we should take of what characters can appear in a file name? ('Content-Disposition', 'attachment; filename="%s.%s"' % (file_name, report_struct['format'])), ('Content-Type', report_mimetype), - ('Content-Length', len(report))],) + ('Content-Length', len(report))], + cookies={'fileToken': int(token)}) @openerpweb.httprequest def print_workflow(self, req, action, token):