prevent to generate dlz on hdcase (accountant required)
							parent
							
								
									e3a75860ea
								
							
						
					
					
						commit
						1a408090c3
					
				| 
						 | 
					@ -814,6 +814,8 @@ class HDCase(Model):
 | 
				
			||||||
            prod=line.product_id
 | 
					            prod=line.product_id
 | 
				
			||||||
            if prod.type != 'stock':
 | 
					            if prod.type != 'stock':
 | 
				
			||||||
                continue
 | 
					                continue
 | 
				
			||||||
 | 
					            if not st.dlz_picking_auto and prod.categ_id.code=='DLZ':
 | 
				
			||||||
 | 
					                continue
 | 
				
			||||||
            # check orginal product
 | 
					            # check orginal product
 | 
				
			||||||
            prod_code=prod.code.split("-")[0]
 | 
					            prod_code=prod.code.split("-")[0]
 | 
				
			||||||
            if patient.type_id.main_product:
 | 
					            if patient.type_id.main_product:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue