38b97971e96db317f393551d563382896a04d310
Steps to reproduce: - create a subcontracted product (i.e. create subcontract BoM) - create and confirm PO for subcontracted product (qty > 1) - try to decrease PO qty for subcontracted product Expected Result: Since receipt is not yet validated, the qty in the receipt should decrease (it will in the subcontract MO as well, but this doesn't matter since no one should work directly with the MO) Actual Result: A validation error occurs saying the qty to produce must be non-negative We allow neg demand qtys to be proprogated from SOs and POs since https://github.com/odoo/odoo/pull/76752 . While we added in a check to make sure MOs are not created when a neg qty change is proprogated, we forgot to add a check for subcontracted created MOs, hence the validation error (i.e. the neg qty change is trying to create a subcontracted MO of a neg amount.) Task: 2777571 (issue 2 of additional issues) X-original-commit: 251f146b6ecb0e2d428089669199a6deb3a6c060 Part-of: odoo/odoo#97383
…
…
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%