Hi All,
Anybody know how to set multi currency in same report like, I want to display product price in "INR" and also in "USD" in same report.
Any idea how to achieve this?
Hi All,
Anybody know how to set multi currency in same report like, I want to display product price in "INR" and also in "USD" in same report.
Any idea how to achieve this?
Hi All,
I have found solution for multi currency in same report,
in xml,
<span t-esc="doc.convert(doc.from_currency_name,
doc.to_currency_name, doc.amount_total)" />
URL =
'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s={from_curr}{to_curr}=X'
YAHOO_CURRENCY_CONVERTER =
'http://finance.yahoo.com/connection/currency-converter-cache?date='
def convert(from_curr='', to_curr='', amount=0, date=None):
if from_curr.lower() == to_curr.lower():
return amount
if not date:
data = _get_data(URL.format(from_curr=from_curr,
to_curr=to_curr))
if data:
exchange = data.split(',')
try:
converted_amount =
u'{0:.3f}'.format(round(float(exchange[1]) * amount, 3))
return float(converted_amount)
except (IndexError, ValueError):
pass
return 0
Could you post the full source code of these two files with your modifications?
is this still not possible in Odoo 15?
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
1
Ara 18
|
4646 | |||
|
1
Oca 18
|
7714 | |||
|
0
Tem 17
|
6655 | |||
|
0
May 17
|
4185 | |||
|
3
Haz 23
|
12014 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.