[FIX] partner name based on product's supplierinfo

bzr revid: fp@tinyerp.com-20120930103851-l762lyqdw3awjxlr
This commit is contained in:
Fabien Pinckaers 2012-09-30 12:38:51 +02:00
commit 1b094843b4
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ class product_pricelist(osv.osv):
if partner:
partner_where = 'base <> -2 OR %s IN (SELECT name FROM product_supplierinfo WHERE product_id = %s) '
partner_args = (partner, product_id)
partner_args = (partner, tmpl_id)
else:
partner_where = 'base <> -2 '
partner_args = ()