From 05f75313cd484011f09efbda2e9328ff94148c70 Mon Sep 17 00:00:00 2001 From: ced <> Date: Tue, 2 Jan 2007 08:19:17 +0000 Subject: [PATCH] INVOICE: use date for currency rate bzr revid: ced-df4f1183afb46a8407a2d912f0d8b56cfcfc0231 --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 0f943b6c995..66442cf3b12 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -256,7 +256,7 @@ class account_invoice(osv.osv): if inv['currency_id'] != company_currency: i['currency_id'] = inv['currency_id'] i['amount_currency'] = i['price'] - i['price'] = self.pool.get('res.currency').compute(cr, uid, inv['currency_id'], company_currency, i['price']) + i['price'] = self.pool.get('res.currency').compute(cr, uid, inv['currency_id'], company_currency, i['price'], context={'date': inv['date_invoice']}) else: i['amount_currency'] = False i['currency_id'] = False