[FIX] Report: double the default height/width of barcode image to avoid a blurred/unusable barcode once integrated in a report

This commit is contained in:
Simon Lejeune 2014-05-21 12:59:05 +02:00
parent 4019b2b334
commit 1745c738ee
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class ReportController(Controller):
# Misc. route utils
#------------------------------------------------------
@route(['/report/barcode', '/report/barcode/<type>/<path:value>'], type='http', auth="user")
def report_barcode(self, type, value, width=300, height=50):
def report_barcode(self, type, value, width=600, height=100):
"""Contoller able to render barcode images thanks to reportlab.
Samples:
<img t-att-src="'/report/barcode/QR/%s' % o.name"/>