e1295ee65f7d3e6f22dc4c0aa17c4a35a652a332
Issue: The `_compute_amount_to_invoice` computation wasn't taking into account the fact that invoices have a direction (i.e. either going outbound(+) or coming inbound(-) (cf. `_compute_direction_sign`)). This, in turn, makes the value of `amount_to_invoice` incorrect for sales order with a credit note. Solution: In `_compute_amount_to_invoice`, multiply the value of `invoice_amount_currency` with the opposite of the `direction_sign` of the invoice, to account for the invoice direction. opw-3360439 X-original-commit: 06ef17f2eefe89abfca64721185ac053fa8de820 [FIX] sale: fix amount to invoice for credit notes Issue: The `_compute_amount_to_invoice` computation wasn't taking into account the fact that invoices have a direction (i.e. either going outbound(+) or coming inbound(-) (cf. `_compute_direction_sign`)). This, in turn, makes the value of `amount_to_invoice` incorrect for sales order with a credit note. Solution: In `_compute_amount_to_invoice`, multiply the value of `invoice_amount_currency` with the opposite of the `direction_sign` of the invoice, to account for the invoice direction. opw-3360439 closes odoo/odoo#127914 X-original-commit: d258774f120fb470d969e68c05cf0d8da0c4557a Signed-off-by: John Laterre (jol) <jol@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%