Fix bug when printing product label
This commit is contained in:
parent
c00f7e2144
commit
8d35955d03
|
@ -663,7 +663,7 @@ def print_labels(request):
|
||||||
return {'error': "Couldn't get printer from label profile"}
|
return {'error': "Couldn't get printer from label profile"}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
printer.print_labels([(product, quantity)])
|
printer.print_labels([(product, quantity, {})])
|
||||||
except Exception, error:
|
except Exception, error:
|
||||||
return {'error': str(error)}
|
return {'error': str(error)}
|
||||||
return {}
|
return {}
|
||||||
|
|
Loading…
Reference in a new issue