From d31e02fb3ff5a712bf2041ace6aa19fc5876c772 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 10 Apr 2014 16:33:47 +0200 Subject: [PATCH] [FIX] stock_account: valuation of quants lp bug: https://launchpad.net/bugs/1302625 fixed bzr revid: qdp-launchpad@openerp.com-20140410143347-chn34o1w0pzn5y2t --- addons/stock_account/stock_account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock_account/stock_account.py b/addons/stock_account/stock_account.py index d83f800305c..6a91e557502 100644 --- a/addons/stock_account/stock_account.py +++ b/addons/stock_account/stock_account.py @@ -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,