[FIX] Stock : Method do_partial updated with prodlot_id

lp bug: https://launchpad.net/bugs/739172 fixed

bzr revid: dhs@tinyerp.com-20110404100208-jkdb0s1rk97u12vd
This commit is contained in:
DHS (OpenERP) 2011-04-04 15:32:08 +05:30
parent c8aae82bd6
commit 9c03ea93f1
1 changed files with 5 additions and 5 deletions

View File

@ -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 = []