de69aab5febb5824e5b99e561b547e53bff644d9
How to reproduce: - Open a PoS session - Create an order, pay it and validate - In the same session, find the order in `Orders` (filter on Paid) and make a full refund - Close the session - Open a new session and open the "refund" order in Orders - Click the "Invoice" button to invoice this order Observed behavior: - We get a UserError saying the reversal entry is unbalanced, where the credit side equals 0.00 and the credit note is not generated. Expected behavior: - We are able to generate the credit note correctly. When computing the reversal entry, it seems we inverted the sign of the quantity field of each order line when reversing a refund. However, that did not make sense because the actual amounts are already reversed for a refund. task-3611296 closes odoo/odoo#147934 X-original-commit: a6b10b65e3a04ce96519edc846801304cc47f40b Signed-off-by: Laurent Smet (las) <las@odoo.com> Signed-off-by: Dylan Kiss (dyki) <dyki@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%