From 3110d97c3d58f7b609fe7eedb2f1ff06cc17d9f0 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 14 Oct 2014 17:04:19 +0200 Subject: [PATCH] [FIX] product: correct name_get for products with resellers. Error introduced during forward-port commit 14f3085 --- addons/product/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/product.py b/addons/product/product.py index 7f3a33ce3a2..d284a6242fb 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -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