|
@ -47,7 +47,7 @@ class ReportCustom(ReportController): |
|
|
|
|
|
|
|
|
cr, uid = request.cr, request.uid |
|
|
cr, uid = request.cr, request.uid |
|
|
report = request.registry['report']._get_report_from_name(cr, uid, reportname) |
|
|
report = request.registry['report']._get_report_from_name(cr, uid, reportname) |
|
|
filename = "%s-test.%s" % (report.name, "pdf") |
|
|
|
|
|
|
|
|
filename = "%s.%s" % (report.name, "pdf") |
|
|
if docids: |
|
|
if docids: |
|
|
ids = [int(x) for x in docids.split(",")] |
|
|
ids = [int(x) for x in docids.split(",")] |
|
|
obj = request.env[report.model].browse(ids) |
|
|
obj = request.env[report.model].browse(ids) |
|
@ -70,4 +70,4 @@ class ReportCustom(ReportController): |
|
|
'message': "Odoo Server Error", |
|
|
'message': "Odoo Server Error", |
|
|
'data': se |
|
|
'data': se |
|
|
} |
|
|
} |
|
|
return request.make_response(html_escape(json.dumps(error))) |
|
|
|
|
|
|
|
|
return request.make_response(html_escape(json.dumps(error))) |