[FIX] printer_zpl2: QR as bytes

This commit is contained in:
Enric Tobella
2019-03-12 13:50:51 +01:00
parent e75daf71ac
commit f00e12c46a
3 changed files with 3 additions and 3 deletions

View File

@@ -191,7 +191,7 @@ class PrintingLabelZpl2(models.Model):
else:
if component.component_type == zpl2.BARCODE_QR_CODE:
# Adding Control Arguments to QRCode data Label
data = 'MM,A{}'.format(data)
data = '{}A,{}'.format(component.error_correction, data)
barcode_arguments = dict([
(field_name, component[field_name])