Fix wrong id used by pricelist based on partner form

bzr revid: ced-f241235de67d7e843a070c107c0b7f08c0027208
This commit is contained in:
ced 2007-12-18 08:22:34 +00:00
parent a58196375c
commit d2d7567352
1 changed files with 1 additions and 1 deletions

View File

@ -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