From 427835e47fb78ed63412d5f4e36bf1039a7eeb4e Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 18 Feb 2015 13:16:51 +0100 Subject: [PATCH] [FIX] website_quote: quote template does not take into account variant prices. In a quote_line, if the product is a product variant, the unit price must be the sum of the sale price and the price extra. opw: 625957 --- addons/website_quote/models/order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_quote/models/order.py b/addons/website_quote/models/order.py index 169de81f15a..0e16029ce02 100644 --- a/addons/website_quote/models/order.py +++ b/addons/website_quote/models/order.py @@ -68,7 +68,7 @@ class sale_quote_line(osv.osv): if product_obj.description_sale: name += '\n' + product_obj.description_sale vals.update({ - 'price_unit': product_obj.list_price, + 'price_unit': product_obj.lst_price, 'product_uom_id': product_obj.uom_id.id, 'website_description': product_obj and (product_obj.quote_description or product_obj.website_description) or '', 'name': name,