[FIX] website_sale: Shopping Cart suggested products

bzr revid: chm@openerp.com-20131108155841-m4b6k02zx8h54ajf
This commit is contained in:
Christophe Matthieu 2013-11-08 16:58:41 +01:00
parent 8c786b7aab
commit 9d9b2ed63c
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ class Ecommerce(http.Controller):
product_ids = []
if order:
for line in order.order_line:
suggested_ids += [p.id for p in line.product_id and line.product_id.suggested_product_ids or [] for line in order.order_line]
suggested_ids += [p.id for p in line.product_id and line.product_id.suggested_product_ids or []]
product_ids.append(line.product_id.id)
suggested_ids = list(set(suggested_ids) - set(product_ids))
if suggested_ids: