709f43f153b9a6010a677509431aebcba97413c6
How to reproduce the problem: - Install the Sales and Invoicing apps - Create a simple SO with a product - Create Invoice -> Down Payment (percentage) 30% -> confirm - On the SO -> Create Invoice -> with Deduct down Payment -> confirm - On that invoice -> Add Credit Note -> Reverse -> confirm On the SO, the Down payment is not counted as invoiced, even tough it was already paid and not refunded. If the user wants to create a new invoice, the system will create one with the full price (not taking the already invoiced Down Payment into account). Cause of the problem : when computing the quantity to invoice for the SO, a condition was avoiding preventing the down payment invoice line to be taken into account in a way that it was just ignored. I don't really understand the reason for this condition, as it specifically ignores the down payments, while it should not be ignored. When creating the draft for the refund invoice, the down payment's SOL is correctly updated as `line.untaxed_amount_to_invoice == 0` is true. But when confirming the invoice, the values changed and the condition is thus not met anymore. opw-2491225 closes odoo/odoo#79572 X-original-commit: 99e8d4ad33bcdb27f7632a9ba5a5a2886d074ed5 Signed-off-by: Roose Pierre-Rodéric ( prro) <prro@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%