d6dc5d0fbb44fba580c134a0766b244b87090138
When posting an invoice to the fiscal device, the currency rate is calculated from an invoice line by dividing its balance by the lines subtotal. This is because the balance in the database will be in KES (Kenyan shillings), whereas the currency on the line can differ. From v16.0 onwards the way that a line is retrieved in order to calculate the currency rate incorrect. When (for example) an invoice has 'Section' lines, then a division by zero is attempted (resulting in a zero division error). This commit amends the line so that the first line of the previously assigned 'lines' variable is used instead. This variable contains only valid invoice lines (non-zero, non-display type etc). It is already done this way from v15.0 onwards (up to v16.0). closes odoo/odoo#110210 X-original-commit: 4e0374fd095ea5e65e8ce311d133fca066e3ee6a 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%