Steps to reproduce: - Manufacturing app > Operations > Manufacturing orders > Create - Set product to [FURN_7800] Desk Combination > Save > Confirm - Click on scrap, choose any product > Done - Edit the manufacturing order > set the quantity to 1/1 > Save An error pops up: You cannot change the UoM for a stock move that has been set to 'Done'. This happens because the scrapped product has its destination location wrongly set to the production location of the manufacturing order. Because of this, it is considered as a component of the manufacturing order. The scrap is also confirmed right after creation, so its state is set to 'done'. Finally, when confirming a manufacturing order, all of its component moves are also confirmed, hence the error. This commit prevents the override of the scrap's destination location, so that it is not wrongly considered a component anymore. The commit also adds tests for the override method, added in commit 0b247ab17ccc5be0c2058ef92ccf3502c97e0bb3 opw-2945182 closes odoo/odoo#99218 X-original-commit: 81820d4df5f23d9b6b2701e513ada89b528a865a Signed-off-by: Adrien Widart <awt@odoo.com>
Odoo Manufacturing Resource Planning
Manage Bill of Materials, plan manufacturing orders, track work orders with the Odoo Open Source MRP app.
Get all your assembly or manufacturing operations managed by Odoo. Schedule manufacturing orders and work orders automatically. Review the proposed planning with the smart kanban and gantt views. Use the advanced analytics features to detect bottleneck in resources capacities and inventory locations.
Schedule Manufacturing Orders Efficiently
Get manufacturing orders and work orders scheduled automatically based on your procurement rules, quantities forecasted and dependent demand (demand for this part based on another part consuming it).
Define Flexible Master Data
Get the flexibility to create multi-level bill of materials, optional routing, version changes and phantom bill of materials. You can use BoM for kits or for manufacturing orders.
Get Flexibility In All Operations
Edit manually all proposed operations at any level of the progress. With Odoo, you will not be frustrated by a rigid system.
Schedule Work Orders
Check resources capacities and fix bottlenecks. Define routings and plan the working time and capacity of your resources. Quickly identify resource requirements and bottlenecks to ensure your production meets your delivery schedule dates.
A Productive User Interface
Organize manufacturing orders and work orders the way you like it. Process next orders from the list view, control in the calendar view and edit the proposed schedule in the Gantt view.
Inventory & Manufacturing Analytics
Track the evolution of the stock value, according to the level of manufacturing activities as they progress in the transformation process.
Fully Integrated with Operations
Get your manufacturing resource planning accurate with it's full integration with sales and purchases apps. The accounting integration allows real time accounting valuation and deeper reporting on costs and revenues on your manufacturing operations.