Purchase order line price unit digits
by Moduon https://github.com/OCA/purchase-workflow , Odoo Community Association (OCA) https://github.com/OCA/purchase-workflowPurchase order line price unit digits

Legacy purchase order line rounding in screen.
Table of contents
Use Cases / Context
From this change https://github.com/odoo/odoo/pull/243987 , price_unit in purchase order lines has a minimum display digits instead of a rounding in screen as it used to be. This is for compatibility issues with Peppol.
For the cases this isn’t needed, the new behavior is quite anoying, as prices computed from the pricelists or currency conversions often throw quite a bunch of decimals (e.g.: 10.000023), which is ok for accuracy sake but is terrible for ux.
Known issues / Roadmap
- If you rely in the off-screen price computation, this could lead to minor rounding issues (although nothing didn’t exist previosly to the upstream change).
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Moduon
Contributors
- David Vidal (Moduon)
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainers:

This module is part of the OCA/purchase-workflow project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Purchase (purchase)
• Invoicing (account) • Discuss (mail) |
| Lines of code | 6 |
| Technical Name |
purchase_order_line_price_unit_digits |
| License | LGPL-3 |
| Website | https://github.com/OCA/purchase-workflow |
Please log in to comment on this module