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

Hello, I'd like to know how can i change the number format (for currency) in Odoo. At the very least, i want the number formating in POS to be like the following:

  • Originally, to write 10,000 it is written as 10000.00 (it is hard to read this)

  • Desired output is $ 10,000.00


How can i do  this ? Thanks for your help.

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

In the menu /Settings/Translations/Languages select the language you are using and change the field "Separator Format". The value need to be the number of digits that conform a group after insert a "Thousands Separator" character. Read the tooltip of that field for more info

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

Hi @Axel, i did like what you mentioned how ever the changes i made are not immediately applied. Any ideas ?

Tác giả

Hi @Axel, i ended up rebooting the server. It works.

Normally a simply f5 to reload the page is good, needed to load the changes again

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

Hi

Of you want to print it from Qweb, you can use : <t t-esc="'{0:,.2f}'.format(int(o.your_ammount))" />

Best Regards


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
6891
4
thg 8 15
8754
2
thg 12 24
2367
1
thg 4 24
1629
2
thg 1 24
1733