INVOICE: use date for currency rate

bzr revid: ced-df4f1183afb46a8407a2d912f0d8b56cfcfc0231
This commit is contained in:
ced 2007-01-02 08:19:17 +00:00
parent 2b6033cc8c
commit 05f75313cd
1 changed files with 1 additions and 1 deletions

View File

@ -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