Skip to content

Conversation

@Arnaud-Sibille
Copy link
Contributor

https://github.com/odoo/enterprise/pull/104728 added a min_display_digits option on float fields.
This commit adds it also in the documentation.

@robodoo
Copy link
Collaborator

robodoo commented Jan 30, 2026

Pull request status dashboard

@C3POdoo C3POdoo requested a review from a team January 30, 2026 12:25
odoo/enterprise#104728 added a
`min_display_digits` option on float fields.
This commit adds it also in the documentation.
@Arnaud-Sibille Arnaud-Sibille force-pushed the 18.0-dynamic_precision-arsi branch from f492a8a to 1be2336 Compare January 30, 2026 12:44
Copy link
Contributor

@aab-odoo aab-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@william-andre william-andre requested a review from a team January 30, 2026 14:05
@Arnaud-Sibille
Copy link
Contributor Author

Arnaud-Sibille commented Jan 30, 2026

Hello @Feyensv

If it is possible for you, it would be great if we can merge this today, as there are a bunch of tickets linked to the fix in the community branch

Pinging you as I saw ANV is off (and sorry for the ping)

Copy link
Collaborator

@Feyensv Feyensv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

robodoo r+

robodoo pushed a commit to odoo/odoo that referenced this pull request Jan 30, 2026
8c199f7 introduced minimum precision
for float fields, but it has a display issue.

Steps to reproduce:
- create an invoice, set the price of an an invoice line to `9417.2`
-> the web client displays `'9,417.200000000001'`

Issue:
In case of a minimum precision, the precision was set to 12.
But it should be dynamic in regards to the number of integer digits.

Solution:
The precision is set to 6 digits, but if the number of significant
decimal digits is lower, then it is set to that number.
The number of significant decimal digits is computed using:
15 - number of integer digits.
--

Also implementing the same logic in qweb.

To reproduce:
- create a an invoice with an invoice line of `300000000031.3`
- post and print
-> the price unit on the pdf shows "300,000,000,031.300232"

opw-5880951

closes #246347

Related: odoo/documentation#16201
Signed-off-by: William André (wan) <[email protected]>
robodoo pushed a commit that referenced this pull request Jan 30, 2026
odoo/enterprise#104728 added a
`min_display_digits` option on float fields.
This commit adds it also in the documentation.

closes #16201

Related: odoo/odoo#246347
Signed-off-by: Victor Feyens (vfe) <[email protected]>
@robodoo robodoo closed this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants