f4c669d0e412ba594fb77cc907f41da3f52f8f07
The aim of this commit is to correct the compute_all calculation when it is dealing with an article with 0.00 price and having a fixed tax included in it. In this situation, this means the tax is directly taken as an expense by the company that offers it to its client. This also solves the situation in which we have a 100% discount because discount is applied before calling `compute_all` by changing the unit_price. Before this commit: Creating an invoice with a line having a price at 0 or a 100% discount and a fixed tax price_include resulted in a really weird behavior: the company had to reimburse the customer for the amount of the tax. (what a lucky customer :D ) After this commit: Customer is sad, he only gets the product for free. The base is calculated as negative, resulting in a debit amount on the base income line. The tax is then counterbalance by it. The form is displaying a negative untaxed amount, a positive tax and the total is 0. closes odoo/odoo#86223 Ticket: 2660808, 2637512 Community-pr: https://github.com/odoo/odoo/pull/85747 X-original-commit: 727d19cb4e012e9a24d94640987ac5ea6f452a2e Signed-off-by: Laurent Smet <las@odoo.com> Signed-off-by: Brice Bartoletti <bib@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%