[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:
parent
f940756881
commit
d31e02fb3f
|
@ -242,7 +242,7 @@ class stock_quant(osv.osv):
|
||||||
for cost, qty in quant_cost_qty.items():
|
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)
|
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])
|
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,
|
'line_id': move_lines,
|
||||||
'period_id': period_id,
|
'period_id': period_id,
|
||||||
'date': move.date,
|
'date': move.date,
|
||||||
|
|
Loading…
Reference in New Issue