From 768d0fb9d33e93dc0a0bfe22d055c74edded42b9 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 2 Jan 2017 15:04:14 +0100 Subject: [PATCH] barcode controller: Remove quiescence zone left and right When creating reports with barcode labels, there is simply no space for excessive quiescence zones. Let's give control of layout to the report template, not to the barcode renderer. --- 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 1fcdd7c4ad3..d0b2c334455 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: - barcode = request.registry['report'].barcode(type, value, width=width, height=height, humanreadable=humanreadable) + barcode = request.registry['report'].barcode(type, value, width=width, height=height, humanreadable=humanreadable, quiet=0) except (ValueError, AttributeError): raise exceptions.HTTPException(description='Cannot convert into barcode.')