INVOICE: use date for currency rate
bzr revid: ced-df4f1183afb46a8407a2d912f0d8b56cfcfc0231
This commit is contained in:
parent
2b6033cc8c
commit
05f75313cd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue