If there are some dependencies between BoM's operations, a traceback will appear when the user removes one WO. Steps to produce: - From Manufacturing > Configuration: Enable Work Orders. - Open any Bills of Material. - In 'Miscellaneous' tab tick the 'Operation Dependencies' boolean. - Set 3 or more operations in the 'Operations' tab. - After saving the BOM add 'Blocked By' in the operations. - Now Create Manufacturing Order for that BOM. - Delete the one or more workorder(s) from mrp order. - Now click on the 'Confirm' button, and the error will be raised. The loop is incorrect because we iterate on the BoM's operations but the keys of the dict `workorder_per_operation` are based on the MO's work orders. Therefore, if we remove one WO, the dict will not have any key for the related operation, hence the traceback. sentry-4146643254 closes odoo/odoo#125990 X-original-commit: 15366af1774a571548a9c35e7dd8acbdc16ba71f Related: odoo/enterprise#42957 Signed-off-by: Adrien Widart (awt) <awt@odoo.com> Signed-off-by: Parth Solanki (paso) <paso@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.