Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
2341 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

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


Hope it helps

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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?

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 25
1470
Odoo App Đã xử lý
1
thg 11 23
2046
0
thg 5 24
1777
0
thg 9 23
2703
0
thg 9 23
2345