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

Hi all,

Some of our suppliers (particularly for fasteners and consumables) provide pricing down to 4 decimal places — for example a washer at $0.0593.

In Odoo, if we set the price precision to 4 decimals, then all product prices are displayed with 4 decimals everywhere. This leads to situations like:

  • $2.50 → displays as 2.5000
  • $2.512 → displays as 2.5120
  • $0.0593 → displays correctly, but makes all the “round” prices look messy

Totals (line totals, invoice totals, website amounts) still round and display at 2 decimals, so no issue there. The challenge is really just in how unit prices are shown.


Question:

Is there any concept of “smart rounding” in Odoo, where the display trims unnecessary trailing zeros but still shows the extra decimals only when needed?


For example:

  • 2.5000 → 2.50
  • 2.5120 → 2.512
  • 0.0593 → 0.0593


Other inventory systems such as Fishbowl support this kind of smart rounding: the price is always shown at a minimum of 2 decimals (e.g. 3.50), but can expand up to the stored precision (e.g. 3.593). This keeps documents clean while still supporting higher-precision costing where needed.


Has anyone implemented a module for this, or found a clean workaround? If not, I’d love to suggest this as a feature improvement — it seems like a nice quality-of-life enhancement for industries like fasteners, chemicals, and commodities where suppliers quote at high precision.


Thanks in advance!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 21
820
0
thg 6 25
989
2
thg 9 24
3168
0
thg 8 23
1136
0
thg 11 21
1610