[FIX] product: correct name_get for products with resellers.

Error introduced during forward-port commit 14f3085
This commit is contained in:
Christophe Simonis 2014-10-14 17:04:19 +02:00
parent 893e426865
commit 3110d97c3d
1 changed files with 1 additions and 1 deletions

View File

@ -1018,7 +1018,7 @@ class product_product(osv.osv):
name = variant and "%s (%s)" % (product.name, variant) or product.name
sellers = []
if partner_ids:
partner_ids and filter(lambda x: x.name.id in partner_ids, product.seller_ids)
sellers = filter(lambda x: x.name.id in partner_ids, product.seller_ids)
if sellers:
for s in sellers:
seller_variant = s.product_name and "%s (%s)" % (s.product_name, variant) or False