From d79e3afb6d9fd284d6d763a0108fc44e93f28f07 Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Mon, 13 May 2013 17:10:06 +0200 Subject: [PATCH] [fix] do_partial stock move --- stock_lot_valuation/stock.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/stock_lot_valuation/stock.py b/stock_lot_valuation/stock.py index 6f3728f05..425c3ad5a 100644 --- a/stock_lot_valuation/stock.py +++ b/stock_lot_valuation/stock.py @@ -194,11 +194,10 @@ class stock_move(orm.Model): def do_partial(self, cr, uid, ids, partial_datas, context=None): if context is None: context = {} - pick_obj = self.pool.get('atock.picking') - for pick in self.browse(cr, uid, ids, context=context): - for move in pick.move_lines: - pick_obj.write_lot(cr, uid, move, partial_datas, context=context) - res = super(stock_picking,self).do_partial(cr, uid, ids, partial_datas, context=context) + pick_obj = self.pool.get('stock.picking') + for move in self.browse(cr, uid, ids, context=context): + pick_obj.write_lot(cr, uid, move, partial_datas, context=context) + res = super(stock_move,self).do_partial(cr, uid, ids, partial_datas, context=context) return res class stock_picking(orm.Model):