From eaf5e50adcb3f78fa227bcc2f69ba76f29eef381 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 16 Sep 2010 14:38:29 +0530 Subject: [PATCH] [IMP] stock: change the name of argument bzr revid: sbh@tinyerp.com-20100916090829-xoavbubn94wqwizm --- addons/sale/stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale/stock.py b/addons/sale/stock.py index 02b2817d3b4..0bb47110213 100644 --- a/addons/sale/stock.py +++ b/addons/sale/stock.py @@ -43,8 +43,8 @@ class stock_move(osv.osv): if move.sale_line_id and move.picking_id.sale_id.pricelist_id: reference_amount, reference_currency_id = move.sale_line_id.price_unit, move.picking_id.sale_id.pricelist_id.currency_id.id return reference_amount, reference_currency_id - def _create_chained_picking(self, cr, uid, pick_name,picking,ptype,todo, context=None): - res=super(stock_move, self)._create_chained_picking(cr, uid, pick_name,picking,ptype,todo, context=context) + def _create_chained_picking(self, cr, uid, pick_name,picking,ptype,move, context=None): + res=super(stock_move, self)._create_chained_picking(cr, uid, pick_name,picking,ptype,move, context=context) if picking.sale_id: picking_obj = self.pool.get('stock.picking').write(cr,uid,[res],{'sale_id':picking.sale_id.id}) return res