Saturday, January 6, 2024
2 changes · 17.0
New functionality added to Odoo
This change appears to add or set up an Odoo demo account. It may help users or evaluators access a ready-made demo environment more easily, though the provided PR details do not describe the exact behavior or affected app area.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Miscellaneous changes
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 ch
Original PR description
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…
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. task-id: None Forward-Port-Of: odoo/odoo#148256 Forward-Port-Of: odoo/odoo#144854