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. 2
      beesdoo_base/__openerp__.py
  2. 2
      beesdoo_base/controllers/report.py

2
beesdoo_base/__openerp__.py

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

2
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)

Loading…
Cancel
Save