6956ebbce6072fab44d11be79675b0cd72f6e029
- Create products A & B - Create a BOM: 1 unit of A to produce 1 unit of B - Create a Route which applies on products with the following Rule: Action: Push To Operation Type: YourCompany: Internal Transfers Source Location: WH/Stock Destination Location: WH/Stock/Shelf 1 Automatic Move: Automatic No Step Added - Apply the route to A - Create a MO for B, validate - Create an Unbuild Order for the MO created, validate The component (A) has a `stock.move` to WH/Stock/Shelf 1 but a `stock.move.line` to WH/Stock. This is because the `stock.move.line` is created when the quantity is set in: https://github.com/odoo/odoo/blob/98b1039705d5911946ed3b5180e4d114dc809ed4/addons/mrp/models/mrp_unbuild.py#L151 However, the `_run_push`, which only changes the `stock.move` location, is called on `_action_confirm` during the call to `_action_done`: https://github.com/odoo/odoo/blob/98b1039705d5911946ed3b5180e4d114dc809ed4/addons/mrp/models/mrp_unbuild.py#L152 The solution is to call `_action_confirm` before the creation of the `stock.move.line`. opw-2156132 closes odoo/odoo#42493 X-original-commit: ac0f43f704a988f11e4670e241380b76dc81f8fc Signed-off-by: Nicolas Martinelli (nim) <nim@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%