0ea5ab6d1c8fd0648393958d95a8c958f6d8a137
The existing implementation for the fiscal device applies a number of limitations to the content of the invoice in order to ensure the invoice can be regularised and serialised in such a way as to make it transmissible to the device. One of these checks was ensuring that only one tax can be applied per line. This check was implemented as the device itself only accepts one tax per line. This check isn't entirely accurate, since the user should be able to add taxes such as levies, service charges etc (non-vat taxes) to the the line, and have them skipped when transmitting the invoice data to the device. As such, this commit adapts the code to alter the checks (allowing for only one 'VAT' tax, and any number of other taxes). The way the price total is determined is altered to use only the "VAT" tax and base amount to get the price_total for the line from the corresponding line's tax details. This commit also adds a test. closes odoo/odoo#148397 Task-id: None X-original-commit: bb3a32c7f45ac5adb3dddf560f6af33f9bca3780 Signed-off-by: Josse Colpaert <jco@odoo.com> Signed-off-by: Daniel Kosky (dako) <dako@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%