diff options
| author | Richard Mathot <rim@odoo.com> | 2015-09-22 11:14:35 +0200 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2015-09-22 11:14:47 +0200 |
| commit | 8c8fee29ea3ee9737f4da19e7eed2f9937232517 (patch) | |
| tree | e555e5b702c2c739d8e70cf4315c3b3ccca02a86 /addons | |
| parent | 396c5db41a37a413a93116f35a105c5f4aa3cbe3 (diff) | |
[FIX] delivery: it is better when parameters are passed in the right order
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/delivery/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
