@ -50,7 +50,6 @@ class ProductTemplate(models.Model): 
			
		
	
		
			
				
					class  ProductProduct ( models . Model ) :  
			
		
	
		
			
				
					    _inherit  =  ' product.product '  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    def  create_price_change_account_move ( self ,  new_price ,  account_id ,  company_id ,  origin ) :  
			
		
	
		
			
				
					        """  
			
		
	
		
			
				
					            """  
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -58,8 +57,7 @@ class ProductProduct(models.Model): 
			
		
	
		
			
				
					        product_accounts  =  { product . id :  product . product_tmpl_id . get_product_accounts ( )  for  product  in  self }  
			
		
	
		
			
				
					        for  product  in  self . with_context ( ) . filtered ( lambda  r :  r . valuation  ==  ' real_time ' ) :  
			
		
	
		
			
				
					            diff  =  product . standard_price  -  new_price  
			
		
	
		
			
				
					            if  float_is_zero ( diff ,  precision_rounding = product . currency_id . rounding ) :  
			
		
	
		
			
				
					                raise  UserError ( _ ( " No difference between the standard price and the new price. " ) )  
			
		
	
		
			
				
					            if  not  float_is_zero ( diff ,  precision_rounding = product . currency_id . rounding ) :  
			
		
	
		
			
				
					                if  not  product_accounts [ product . id ] . get ( ' stock_valuation ' ,  False ) :  
			
		
	
		
			
				
					                    raise  UserError ( _ ( ' You don \' t have any stock valuation account defined on your product category. You must define one before processing this operation. ' ) )  
			
		
	
		
			
				
					                qty_available  =  product . qty_available  
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -115,7 +113,6 @@ class ProductProduct(models.Model): 
			
		
	
		
			
				
					        else :  
			
		
	
		
			
				
					            query  =  query  %  ( ' ' , )  
			
		
	
		
			
				
					        self . env . cr . execute ( query ,  params = params )  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					        res  =  self . env . cr . fetchall ( )  
			
		
	
		
			
				
					        for  row  in  res :  
			
		
	
		
			
				
					            fifo_automated_values [ ( row [ 0 ] ,  row [ 1 ] ) ]  =  ( row [ 2 ] ,  row [ 3 ] ,  list ( row [ 4 ] ) )