From 66c02428083f8af8aad744dee1eb2c0f7b395985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Taymans?= Date: Mon, 29 Jul 2019 16:28:46 +0200 Subject: [PATCH] [FIX] b_base: remove test in report pdf name There was a 'test' that was wrongly added to the name of the PDF report. --- beesdoo_base/__openerp__.py | 4 ++-- beesdoo_base/controllers/report.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/beesdoo_base/__openerp__.py b/beesdoo_base/__openerp__.py index 229d3ec..8753643 100644 --- a/beesdoo_base/__openerp__.py +++ b/beesdoo_base/__openerp__.py @@ -3,7 +3,7 @@ 'name': "Beescoop Base Module", 'summary': """ - Module that customize the base module and contains some python tools + Module that customize the base module and contains some python tools """, 'description': """ @@ -13,7 +13,7 @@ 'website': "https://github.com/beescoop/Obeesdoo", 'category': 'Project Management', - 'version': '0.1', + 'version': '9.0.1.0.1', 'depends': ['point_of_sale', 'purchase', 'report', 'portal', 'partner_firstname'], diff --git a/beesdoo_base/controllers/report.py b/beesdoo_base/controllers/report.py index 94f9f94..b8d441f 100644 --- a/beesdoo_base/controllers/report.py +++ b/beesdoo_base/controllers/report.py @@ -47,7 +47,7 @@ class ReportCustom(ReportController): cr, uid = request.cr, request.uid 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: ids = [int(x) for x in docids.split(",")] obj = request.env[report.model].browse(ids) @@ -70,4 +70,4 @@ class ReportCustom(ReportController): 'message': "Odoo Server Error", 'data': se } - return request.make_response(html_escape(json.dumps(error))) \ No newline at end of file + return request.make_response(html_escape(json.dumps(error)))