diff options
| author | vnsoft <vnsoft.he@gmail.com> | 2015-12-16 14:47:46 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2015-12-16 14:48:25 +0100 |
| commit | 4b635a1da7d07c1694295fbf812f8a2d47993f1a (patch) | |
| tree | 5fdcc953b67b5415d683a23fb61fd5c7bf4e6c90 /addons/report/controllers/main.py | |
| parent | 47359af3af11c261b62241a28a540009d6c0ed51 (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.py | 2 |
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 |
