Skip to content

Commit

Permalink
[FIX] report barcode cast humanreadable
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin3274 authored and antonylesuisse committed Dec 22, 2014
1 parent 9ab18cd commit 7566b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/report/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def report_barcode(self, type, value, width=600, height=100, humanreadable=0):
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
Expand Down

0 comments on commit 7566b9d

Please sign in to comment.