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"}
 | 
					        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…
	
	Add table
		Add a link
		
	
		Reference in a new issue