Ir al contenido
Menú
Se marcó esta pregunta
46 Vistas

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!

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
sept 21
820
0
jun 25
988
2
sept 24
3166
0
ago 23
1135
0
nov 21
1609