콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6030 화면

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
4663
3
5월 23
20513
2
1월 19
5977
1
4월 24
1983
2
1월 24
2002