From a4f5abaefcd5d3dd140f49c5f568ca217b6037db Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Mon, 27 May 2013 15:30:44 +0200 Subject: [PATCH] [FIX] _create_product_valuation_moves (stock.move) does not use context while creating account.move bzr revid: lorenzo.battistini@agilebg.com-20130527133044-lzrq5c5t30qrhel7 --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index fca3d9ff073..e3333360708 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2332,7 +2332,7 @@ class stock_move(osv.osv): { 'journal_id': j_id, 'line_id': move_lines, - 'ref': move.picking_id and move.picking_id.name}) + 'ref': move.picking_id and move.picking_id.name}, context=context) def action_done(self, cr, uid, ids, context=None): """ Makes the move done and if all moves are done, it will finish the picking.