[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) <anv@odoo.com>
This commit is contained in:
Valentin Chevalier
2023-12-20 16:51:12 +00:00
parent f0a346a477
commit 9dfb42f4a4
+1 -1
View File
@@ -1622,7 +1622,7 @@
<t t-call='website_sale.base_unit_price'>
<t t-set='product' t-value='line.product_id'/>
<t t-set='combination_info'
t-value="{'base_unit_price':product._get_base_unit_price(product_price)}"/>
t-value="{'base_unit_price': product._get_base_unit_price(product_price/line.product_uom_qty)}"/>
</t>
</small>
</div>