Steps to reproduce: - Create a product with two variants A & B - Create a BoM for this product and create the following operations: -- ope_A that applies only on variant A with a duration of 10 -- ope_B that applies only on variant B with a duration of 30 -- ope_common that applies to both with a duration of 60 - Set an employee cost (e.g. 120) on the chosen workcenter - Open the Overview of the created BoM Issue: The column 'BoM Cost' will be completely incorrect, as the `zip()` will try to associate all operations on the BoM (including operations that doesn't apply to the selected variant) with all operation lines generated for this variant (already filtered). This will end up trying to add the wrong duration costs to the wrong operation line on the report. Instead, we can simply compute the value once and override its computation in `mrp_workorder_hr` to include the employee costs. closes odoo/odoo#152901 X-original-commit: 04b5b5d45265de0cf374c1295a679f38febfe5ca Related: odoo/enterprise#55973 Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Quentin Wolfs (quwo) <quwo@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.