Fix bug when printing product label

This commit is contained in:
Lance Edgar 2018-01-08 15:32:36 -06:00
parent c00f7e2144
commit 8d35955d03

View file

@ -663,7 +663,7 @@ def print_labels(request):
return {'error': "Couldn't get printer from label profile"}
try:
printer.print_labels([(product, quantity)])
printer.print_labels([(product, quantity, {})])
except Exception, error:
return {'error': str(error)}
return {}