d0d9d09216b30be0685fdc229dbdd884e3f52d14
Steps to reproduce: - Create a quotation - Add a product that is invoiced on "ordered quantities" and set the quantity to a negative number. - Leave 'delivered' to 0 - Confirm the quotation - Create the Invoice and validate it. - Go to the SO list view (Orders > Orders) You should see that the Invoice Status of the order you just created is 'Upselling Opportunity', which is not correct. Why this is happening: Here's an explanation on the 'Upselling Opportunity' state (found in the code): " upselling: this is possible only for a product invoiced on ordered quantities for which *we delivered more than expected.* " In our case, the invoice line's state is set to 'upselling' because we have a negative ordered quantity and a zero delivered quantity (i.e. we delivered more than expected) opw-2895218 closes odoo/odoo#97830 X-original-commit: 5f10583336bf39430a304e2c47dfd0310ee4fa3d Signed-off-by: Nshimiyimana Serge Séna (sesn) <sesn@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%