e901dfe466169e6134ed2aa0071b1dd454db3152
Usecase to reproduce: - Set a product with routes: MTO + Buy - Create and valide a SO - Cancel the delivery - Cancel the RFQ linked -> The delivery will be switch to confirmed state while it should remain cancel. It happens because the button_cancel on purchase.order call _recompute_state on move. _recompute_state modify the state to confirm, partially_available or available depending the reservation status. Howver it should never be call on 'draft', 'cancel' or 'done' moves since it would modify their state. A fix would be to filter the set of moves in order to exclude moves that are cancel, done or draft before using _recompute_state. However this is easy to forget and the issue would be probably redo in the future. A more stable fix is to add the filter in the _recompute_state directly. closes odoo/odoo#42471 Task: 2157543 X-original-commit: 0619415c17dc810aea67890cd3415c3f05dd2290 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.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%