From 9dfb42f4a4fc01c487dc69575d6e50d5689c6474 Mon Sep 17 00:00:00 2001 From: Valentin Chevalier Date: Wed, 20 Dec 2023 14:23:54 +0100 Subject: [PATCH] [FIX] website_sale: show the right reference price in the cart Before this commit, the product reference price was computed based on the total amount and not on the unit price. Now, the product reference price is computed based on the quotient of the total amount by the quantity. closes odoo/odoo#146979 Signed-off-by: Antoine Vandevenne (anv) --- addons/website_sale/views/templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 53e33fc21a7..163ed3525bb 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -1622,7 +1622,7 @@ + t-value="{'base_unit_price': product._get_base_unit_price(product_price/line.product_uom_qty)}"/>