[FIX] website_sale_delivery: Wrong shipping price displayed
Steps to reproduce the bug: - Let's consider a company C in € - Let's consider two selectable pricelists P1 in € and P2 in $ - The € rate is 1.0 and the $ rate is 0.5 - Configure a shipping method SM with a fixed price of 100€ and free if the price is above 1000€. - Configure a free delivery product P with sales price = 100€ - Go to the shop with P2 as pricelist and add in the cart any product which price is less than 1000€ (in this case 500$) - Process your order until the check out Bug: The price of SM was 25$ instead of 50$ because the function rate_shipment already computed the price in the right currency opw:2239117 closes odoo/odoo#49987 X-original-commit: 68b08164e5de353ea0c48de92d0c0e028b49bc52 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
<span t-if="delivery.fixed_price > 0.0" t-att-class="badge_class">
|
||||
<t t-esc="delivery.rate_shipment(website_sale_order)['price'] if delivery.free_over else delivery.fixed_price"
|
||||
t-options='{"widget": "monetary",
|
||||
"from_currency": delivery.product_id.company_id.currency_id or website_sale_order.company_id.currency_id,
|
||||
"from_currency": website_sale_order.currency_id if delivery.free_over else delivery.product_id.company_id.currency_id or website_sale_order.company_id.currency_id,
|
||||
"display_currency": website_sale_order.currency_id}'/>
|
||||
</span>
|
||||
<span t-else="" t-att-class="badge_class">Free</span>
|
||||
|
||||
Reference in New Issue
Block a user