From d396ed515ce9f214ec6ef718f0f2233730aea796 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Tue, 27 Feb 2018 16:59:01 +0100 Subject: [PATCH] [FIX] website_sale_delivery: avoid double conversion to currency on delivery provider Yourcompany is in currency USD Go to the website and select the CAD pricelist Have Fedex installed (then you'll have to set weight on the product you buy) *Expected with DHL and generally any API driven delivery* Make an online order to the USA but in CAD Before this commit: At the "Choose your delivery method" step You'll see that the amount for Fedex that seems to be 'converted twice' into CAD (And it is) This is because there is a slight mismatch in how delivery compute their price When the delivery is fixed, or based on a rule Its price is always in terms of its company's currency Whereas in other delivery type, the price is computed in terms of ther order's currency See the difference between the implementation of the methods: and OPW 1813466 --- .../views/website_sale_delivery_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale_delivery/views/website_sale_delivery_templates.xml b/addons/website_sale_delivery/views/website_sale_delivery_templates.xml index 9cbfc53a7d4..b079929f551 100644 --- a/addons/website_sale_delivery/views/website_sale_delivery_templates.xml +++ b/addons/website_sale_delivery/views/website_sale_delivery_templates.xml @@ -36,7 +36,7 @@