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

How to add the currency symbol in qweb-pdf of purchase order in odoo 16. Since i have tried several methods but the result was negative. Given below is a sample code based on a suggestion from odoo community, but its not working. while applying this method, the output was like this: ₹ (hard coding the rupee symbol also gave same output as: ₹Â). Desired output: ₹

sample code:

t-field="o.amount_total" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"

I want to display rupee symbol in qweb-pdf in odoo 16

아바타
취소
베스트 답변

Hello, Add the given below code on just below the <template> tag

<t t-call=" web.html_container">


Hope it helps

아바타
취소
베스트 답변

Hi,

Make sure you have added the encoding format in XML as in the screenshot below,

Note : Recommended version for wkhtmltopdf is 0.12.6.1

Thanks

아바타
취소
작성자

Thanks but thats not the issue because the encoding format was already added like this: <?xml version="1.0" encoding="utf-8"?>

Which version of wkhtmltopdf are you using?

베스트 답변

For that you should have written currency for company for which you are writing report.
settings-> user&companies-> company 
change the currency value.

아바타
취소
작성자

Thanks but that's not the issue because currency was already written as INR

관련 게시물 답글 화면 활동
1
4월 25
1527
Odoo App 해결 완료
1
11월 23
2111
0
5월 24
1842
0
9월 23
2773
0
9월 23
2409