From 0b8e48dd5ff81a687be2087b72e0e37ccf82903d Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 20 Jan 2016 09:15:31 +0100 Subject: [PATCH] [FIX] purchase: currency of PO When a PO is created automatically from a procurement, the currency is the currency of the connected user, which might be different from the currency of the pricelist. The fix set the currency to the currency of the pricelist. opw-665573 --- addons/purchase/purchase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 9f7ebafc18b..914de80f6d0 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -1664,6 +1664,7 @@ class procurement_order(osv.osv): 'location_id': procurement.location_id.id, 'picking_type_id': procurement.rule_id.picking_type_id.id, 'pricelist_id': partner.property_product_pricelist_purchase.id, + 'currency_id': partner.property_product_pricelist_purchase.currency_id.id, 'date_order': purchase_date.strftime(DEFAULT_SERVER_DATETIME_FORMAT), 'company_id': procurement.company_id.id, 'fiscal_position': fp,