Hi Team,

I was testing and created a Picking for Goods Return, however, when I did that, following error was created:
![image](https://user-images.githubusercontent.com/5710396/32747248-2f22e1f0-c8de-11e7-817a-17e238e928b3.png)

I checked and found that in the code instead of account.move, stock.move object was referenced.
![image](https://user-images.githubusercontent.com/5710396/32747171-e9a88832-c8dd-11e7-8c35-cd184c92cbfe.png)

Please advice.

Regards


addons/stock_account/models/stock.py
""" Accounting Valuation Entries """
        if move.product_id.type != 'product' or move.product_id.valuation != 'real_time':
            
            return False
        if any(quant.owner_id or quant.qty <= 0 for quant in self):
            
            
            
            
            return False
        location_from = move.location_id
        location_to = self[0].location_id  
        company_from = location_from.usage == 'internal' and location_from.company_id or False
        company_to = location_to and (location_to.usage == 'internal') and location_to.company_id or False
        
        
        if company_to and (move.location_id.usage not in ('internal', 'transit') and move.location_dest_id.usage == 'internal' or company_from != company_to):
            journal_id, acc_src, acc_dest, acc_valuation = move._get_accounting_data_for_valuation()
            if location_from and location_from.usage == 'customer':  
                self.with_context(force_company=company_to.id)._create_account_move_line(move, acc_dest, acc_valuation, journal_id)