From 8c8fee29ea3ee9737f4da19e7eed2f9937232517 Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Tue, 22 Sep 2015 11:14:35 +0200 Subject: [PATCH] [FIX] delivery: it is better when parameters are passed in the right order --- addons/delivery/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/delivery/models/sale_order.py b/addons/delivery/models/sale_order.py index 36f5b24c5b8..a9cc899263c 100644 --- a/addons/delivery/models/sale_order.py +++ b/addons/delivery/models/sale_order.py @@ -56,7 +56,7 @@ class SaleOrder(models.Model): raise UserError(_('No carrier matching.')) price_unit = carrier.get_price_available(order) if order.company_id.currency_id.id != order.pricelist_id.currency_id.id: - price_unit = order.company_id.currency_id.with_context(date=order.date_order).compute(order.pricelist_id.currency_id.id, price_unit) + price_unit = order.company_id.currency_id.with_context(date=order.date_order).compute(price_unit, order.pricelist_id.currency_id) account_id = carrier.product_id.property_account_income_id.id if not account_id: