[FIX] Stock : Physical inventory should respect the quantity change when inventory line has lot assigned

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

bzr revid: jvo@tinyerp.com-20110329144451-wurf1sj2am0eaw6b
This commit is contained in:
Jay Vora (OpenERP)
2011-03-29 20:14:51 +05:30
parent ae972b51c6
commit 1419a853a5
-5
View File
@@ -2582,11 +2582,6 @@ class stock_inventory(osv.osv):
'location_id': line.location_id.id,
'location_dest_id': location_id,
})
if lot_id:
value.update({
'prodlot_id': lot_id,
'product_qty': line.product_qty
})
move_ids.append(self._inventory_line_hook(cr, uid, line, value))
message = _('Inventory') + " '" + inv.name + "' "+ _("is done.")
self.log(cr, uid, inv.id, message)