Fix subtle bug when identifying purchase batch row on order form update
This commit is contained in:
		
							parent
							
								
									d04f80e4e0
								
							
						
					
					
						commit
						9e0e21399b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -695,7 +695,7 @@ class PurchaseBatchView(BatchMasterView):
 | 
			
		|||
            return {'error': "Product not found"}
 | 
			
		||||
 | 
			
		||||
        row = None
 | 
			
		||||
        rows = [row for row in batch.data_rows if row.product_uuid == uuid]
 | 
			
		||||
        rows = [r for r in batch.data_rows if r.product_uuid == uuid]
 | 
			
		||||
        if rows:
 | 
			
		||||
            assert len(rows) == 1
 | 
			
		||||
            row = rows[0]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue