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

Hi,

I've set up the thousands separator in the language options.

Everything is fine except for the printed version of the reports (quotations, invoices) : the thousands separator are not there. Should I change something in the report ?

For information here is my configuration about the number format

  • Separator format : [3,0]
  • Decimal Separator : .
  • Thousands Separator : ,

Thanks for your help,

Cheers

Ảnh đại diện
Huỷ bỏ

I look also for this feature

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

Is there a way to show thousand separators in the qweb report?

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

If you are using Webkit template engine you need to refer to the language format in the mako file.

For example for a Quotation Order, the line order unit price will be:

${formatLang(line.price_unit)}

For RML reports I don't know the way to do that.

 

 

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

Guys,

formatLang() is core report engine functionality of OpenERP and webkit is also overriding the core reporting engine. So it will work for sure.

Depending on the length of your number, you should use the seperator. Try with [3,3,-1] format.

Thanks.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 23
2719
1
thg 5 16
3622
2
thg 4 16
4288
2
thg 7 24
1925
TAX 15% Đã xử lý
1
thg 4 24
2717