Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 94 |
Technical Name |
odx_float_decimal_formatter |
License | LGPL-3 |
Website | https://www.odoxsofthub.com |
Versions | 15.0 16.0 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 94 |
Technical Name |
odx_float_decimal_formatter |
License | LGPL-3 |
Website | https://www.odoxsofthub.com |
Versions | 15.0 16.0 17.0 18.0 |



This module introduces a custom widget that automatically trims unnecessary trailing zeroes from float fields for improved readability and a cleaner user interface. It ensures that numbers like 12.000 display as 12, and 15.500 as 15.5, without affecting the underlying precision or stored value.
Features
- Automatically removes unnecessary trailing zeroes.
- Enhances readability of numerical data.
- Does not affect the actual precision or stored values in the database.
- Fully compatible with both standard float fields and monetary fields.
- widget="decimal_formatter"
- Use "%g" in QWEB reports to trim trailing zeroes from float values (e.g.: <t t-esc="('%g' % o.amount_total)"/>).



Monetary field.


You are entitled to receive 90 days of complimentary support dedicated to resolving any app-related bugs starting from the date of purchase.

Please log in to comment on this module