From 9c03ea93f1bc3bdfc9ea147ed4bd8b427f0fb7f9 Mon Sep 17 00:00:00 2001 From: "DHS (OpenERP)" Date: Mon, 4 Apr 2011 15:32:08 +0530 Subject: [PATCH] [FIX] Stock : Method do_partial updated with prodlot_id lp bug: https://launchpad.net/bugs/739172 fixed bzr revid: dhs@tinyerp.com-20110404100208-jkdb0s1rk97u12vd --- addons/stock/stock.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 9ada4a21939..af1b783709e 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1248,9 +1248,9 @@ class stock_picking(osv.osv): if new_picking: move_obj.write(cr, uid, [c.id for c in complete], {'picking_id': new_picking}) - for move in complete: - if prodlot_ids.get(move.id): - move_obj.write(cr, uid, [move.id], {'prodlot_id': prodlot_ids[move.id]}) + for move in complete: + if prodlot_ids.get(move.id): + move_obj.write(cr, uid, [move.id], {'prodlot_id': prodlot_ids[move.id]}) for move in too_many: product_qty = move_product_qty[move.id] defaults = { @@ -1463,7 +1463,7 @@ class stock_move(osv.osv): _description = "Stock Move" _order = 'date_expected desc, id' _log_create = False - + def action_partial_move(self, cr, uid, ids, context=None): if context is None: context = {} partial_id = self.pool.get("stock.partial.move").create( @@ -1481,7 +1481,7 @@ class stock_move(osv.osv): 'domain': '[]', 'context': context } - + def name_get(self, cr, uid, ids, context=None): res = []