From 16bee80a57cfd4dec9b120a8799cc1eba1176f88 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 9 Sep 2010 12:20:39 +0530 Subject: [PATCH] [Fix] stock: Correct the object name bzr revid: sbh@tinyerp.com-20100909065039-z2g8avrcpbknf5ue --- addons/stock/wizard/stock_fill_inventory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/wizard/stock_fill_inventory.py b/addons/stock/wizard/stock_fill_inventory.py index e9b3fb2e02c..539ae830687 100644 --- a/addons/stock/wizard/stock_fill_inventory.py +++ b/addons/stock/wizard/stock_fill_inventory.py @@ -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],