Fix bug when printing product label
This commit is contained in:
		
							parent
							
								
									c00f7e2144
								
							
						
					
					
						commit
						8d35955d03
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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 {}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue