summaryrefslogtreecommitdiff
path: root/addons/report/controllers/main.py
diff options
context:
space:
mode:
authorkevin wang <kevin_327@163.com>2014-12-22 17:07:49 +0800
committerAntony Lesuisse <al@openerp.com>2014-12-23 00:10:57 +0100
commit7566b9d4257ef7397c2ee07ee66ca5669bb9cd5d (patch)
tree72aec769ed4e168d39f2ed37acddcb025c900ce8 /addons/report/controllers/main.py
parent9ab18cd149fccbd844e075caf25e7239c2939dde (diff)
[FIX] report barcode cast humanreadable
Diffstat (limited to 'addons/report/controllers/main.py')
-rw-r--r--addons/report/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/report/controllers/main.py b/addons/report/controllers/main.py
index 4c6b4a9f7cf..56236990316 100644
--- a/addons/report/controllers/main.py
+++ b/addons/report/controllers/main.py
@@ -86,7 +86,7 @@ class ReportController(Controller):
at the bottom of the output image
"""
try:
- width, height = int(width), int(height)
+ width, height, humanreadable = int(width), int(height), bool(humanreadable)
barcode = createBarcodeDrawing(
type, value=value, format='png', width=width, height=height,
humanReadable = humanreadable