diff --git a/addons/website_quote/models/order.py b/addons/website_quote/models/order.py index 0384918c35a..ff8fa7bf672 100644 --- a/addons/website_quote/models/order.py +++ b/addons/website_quote/models/order.py @@ -132,7 +132,7 @@ class sale_order(osv.osv): for order in self.browse(cr, uid, ids, context=context): total = 0.0 for line in order.order_line: - total += (line.product_uom_qty * line.price_unit) + total += line.price_subtotal + line.price_unit * ((line.discount or 0.0) / 100.0) * line.product_uom_qty res[order.id] = total return res