[FIX] product: correct name_get for products with resellers.
authorChristophe Simonis <chs@odoo.com>
Tue, 14 Oct 2014 15:04:19 +0000 (17:04 +0200)
committerChristophe Simonis <chs@odoo.com>
Tue, 14 Oct 2014 15:04:19 +0000 (17:04 +0200)
Error introduced during forward-port commit 14f3085

addons/product/product.py

index 7f3a33c..d284a62 100644 (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