From 4b635a1da7d07c1694295fbf812f8a2d47993f1a Mon Sep 17 00:00:00 2001 From: vnsoft Date: Wed, 16 Dec 2015 14:47:46 +0100 Subject: [PATCH] [FIX] report: barcode controller: correct humanreadable handling humanreadble arg comes as a string, so bool(0) was True. Cast it to int before. --- addons/report/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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