コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5767 ビュー

These are the fields in my import_payment.py

transaction_date = fields.Date(string="Transaction Date",
required=True)
paid_in_ron = fields.Float(string="Amount Paid in RON")
paid_in_euro = fields.Float(string="Amount Paid in EURO")
amount = fields.Float(string="Amount")

Can somebody help me to convert the "paid_in_euro" field based on the "exchange rate" of the "transaction_date" and insert it to "amount" field in "RON(Base currency)"

Sorry I am new at Odoo. Any help would be very much appreciated 


アバター
破棄
最善の回答

You can use odoo's currency conversion function


from_currency._convert(from_amount, to_currency, company, date)
アバター
破棄
著作者

I had found this functions Sir but I currently don't know how to use it. Can you please provide a sample from the details I had provided from above? Thank you in advance

関連投稿 返信 ビュー 活動
1
6月 18
4461
3
5月 23
20129
2
1月 19
5771
1
4月 24
1814
2
1月 24
1842