[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user