| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -62,7 +62,23 @@ class MrpProduction(models.Model): | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                'product_qty': prod['qty'], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                'bom_id': bom.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            self.sudo().create(vals) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            mrp_order = self.sudo().create(vals) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            list_value = [] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            for bom_line in mrp_order.bom_id.bom_line_ids: | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                list_value.append((0, 0, { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                            'raw_material_production_id': mrp_order.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                            'name': mrp_order.name, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                            'product_id': bom_line.product_id.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                            'product_uom': bom_line.product_uom_id.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                            'product_uom_qty': bom_line.product_qty, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                            'picking_type_id': mrp_order.picking_type_id.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                            'location_id': mrp_order.location_src_id.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                            'location_dest_id': mrp_order.location_dest_id.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                            'company_id': mrp_order.company_id.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                })) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            mrp_order.update({'move_raw_ids':list_value}) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return True | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |