22e01f22e0a89169514ffb4e8f42f4b9802ad806
According to the spec, the PrezzoUnitario should be the unit price without the taxes. If we use taxes included, this can be problematic. That is because there is another rule that says that the PrezzoUnitario * Quantita - Sconto should be within 0.01 precision of the PrezzoTotale. So, with taxes included and a price unit only rounded to 2 decimals, you easily go out of that limit. The solution is to increase the precision on the price_unit (6 decimals should not cause side effects and precise enough for most cases) and to do the calculation differently by calculating it again from the price_subtotal on the invoice line. Task id: 2764978 closes odoo/odoo#85718 X-original-commit: 82f2794a2aee8492cbd36d8ab4d8a62c9665789d Signed-off-by: Laurent Smet <las@odoo.com> Signed-off-by: Josse Colpaert <jco@odoo.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%