[FIX] stock_account: valuation of quants

lp bug: https://launchpad.net/bugs/1302625 fixed

bzr revid: qdp-launchpad@openerp.com-20140410143347-chn34o1w0pzn5y2t
This commit is contained in:
Quentin (OpenERP) 2014-04-10 16:33:47 +02:00
parent f940756881
commit d31e02fb3f
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ class stock_quant(osv.osv):
for cost, qty in quant_cost_qty.items():
move_lines = self._prepare_account_move_line(cr, uid, move, qty, cost, credit_account_id, debit_account_id, context=context)
period_id = context.get('force_period', self.pool.get('account.period').find(cr, uid, move.date, context=context)[0])
return move_obj.create(cr, uid, {'journal_id': journal_id,
move_obj.create(cr, uid, {'journal_id': journal_id,
'line_id': move_lines,
'period_id': period_id,
'date': move.date,