summaryrefslogtreecommitdiff
path: root/addons/report/controllers/main.py
diff options
context:
space:
mode:
authorvnsoft <vnsoft.he@gmail.com>2015-12-16 14:47:46 +0100
committerSimon Lejeune <sle@openerp.com>2015-12-16 14:48:25 +0100
commit4b635a1da7d07c1694295fbf812f8a2d47993f1a (patch)
tree5fdcc953b67b5415d683a23fb61fd5c7bf4e6c90 /addons/report/controllers/main.py
parent47359af3af11c261b62241a28a540009d6c0ed51 (diff)
[FIX] report: barcode controller: correct humanreadable handling
humanreadble arg comes as a string, so bool(0) was True. Cast it to int before.
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 5620819c1a1..756aa8fb113 100644
--- a/addons/report/controllers/main.py
+++ b/addons/report/controllers/main.py
@@ -66,7 +66,7 @@ class ReportController(Controller):
at the bottom of the output image
"""
try:
- width, height, humanreadable = int(width), int(height), bool(humanreadable)
+ width, height, humanreadable = int(width), int(height), bool(int(humanreadable))
barcode = createBarcodeDrawing(
type, value=value, format='png', width=width, height=height,
humanReadable = humanreadable