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


from collections import defaultdict
from odoo import api, fields, models, _
from odoo.exceptions import UserError
from odoo.tools import float_compare, float_round
import logging
_logger = logging.getLogger(__name__)
class StockInventory(models.Model):
    _inherit = "stock.inventory"
    accounting_date = fields.Date(
        'Force Accounting Date',
        help="Choose the accounting date at which you want to value the stock "
             "moves created by the inventory instead of the default one (the "
             "inventory end date)")
    @api.multi
    def post_inventory(self):
        acc_inventories = self.filtered(lambda inventory: inventory.accounting_date)
        for inventory in acc_inventories:
            res = super(StockInventory, inventory.with_context(force_period_date=inventory.accounting_date)).post_inventory()
        other_inventories = self - acc_inventories
        if other_inventories:
            res = super(StockInventory, other_inventories).post_inventory()
        return res
class StockLocation(models.Model):