From d2d7567352c2e65b5a5c915f7492ef19193f786d Mon Sep 17 00:00:00 2001 From: ced <> Date: Tue, 18 Dec 2007 08:22:34 +0000 Subject: [PATCH] Fix wrong id used by pricelist based on partner form bzr revid: ced-f241235de67d7e843a070c107c0b7f08c0027208 --- addons/product/pricelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py index 60ee0caed19..19c317f4048 100644 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@ -189,7 +189,7 @@ class product_pricelist(osv.osv): if partner: where = [('name', '=', partner) ] sinfo = supplierinfo_obj.search(cr, uid, - [('product_id', '=', prod_id)] + where) + [('product_id', '=', tmpl_id)] + where) if not sinfo: result[id] = 0 continue