Browse Source

[FIX] b_base: remove test in report pdf name

There was a 'test' that was wrongly added to the name of the PDF report.
pull/95/head
Rémy Taymans 5 years ago
parent
commit
66c0242808
  1. 4
      beesdoo_base/__openerp__.py
  2. 4
      beesdoo_base/controllers/report.py

4
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'],

4
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)))
return request.make_response(html_escape(json.dumps(error)))
Loading…
Cancel
Save