[Fix] stock: Correct the object name

bzr revid: sbh@tinyerp.com-20100909065039-z2g8avrcpbknf5ue
This commit is contained in:
sbh (Open ERP)
2010-09-09 12:20:39 +05:30
parent 319c65e5b9
commit 16bee80a57
+2 -2
View File
@@ -64,8 +64,8 @@ class stock_fill_inventory(osv.osv_memory):
stock = cr.fetchall()
for s in stock:
if (loc, s[0]) not in inv:
p = prod_obj.browse(cr, uid, s[0])
invent_line_obj.create(cr, uid, {
p = product_obj.browse(cr, uid, s[0])
inventory_line_obj.create(cr, uid, {
'inventory_id': context['active_id'],
'location_id': loc,
'product_id': s[0],