OdooWiki OCA HUB

MRP BoM Component Mass Change

mrp_bom_component_mass_change folder_open OCA/manufacture open_in_new
Manufacturing License: AGPL-3

This module allows you to replace or remove a component in several bills of materials at once.

When a component must be changed, the wizard shows the bills of materials where it is used (excluding, when replacing, those that already contain the new component to avoid duplicated lines), lets the user select the ones to update, and then either removes the component or replaces it with another product (setting the new quantity) in a single step.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Replace or remove a component in many bills of materials at once. A wizard lists the bills of materials using that component, lets you pick which ones to update, and applies the change in one step.

This module adds a mass-change tool for bills of materials (BoMs). On a BoM line, a small exchange button appears next to a component only when that component is used in more than one BoM, so you can jump straight into the wizard.

The wizard, also reachable from the Manufacturing menu under "Mass Change BoM Component", asks for the component to change and whether you want to replace it or remove it. If you choose replace, you must give the new component and the new quantity; the wizard then shows the list of BoMs that use the old component, excluding any BoM that already contains the new component to avoid duplicate lines. You tick the BoMs to update and press Apply.

Business rules enforced: when replacing, the new component must be different from the old one and the new quantity must be greater than zero; at least one BoM must be selected. When removing, the new component fields are cleared. If the unit of measure category of the new component differs from the line's, the line's unit of measure is updated automatically. The wizard can also be launched from the BoM lines list view.

Depends on

mrp

Menus it adds

Mass Change BoM Component
Models and fields (2)
  • mrp.bom.line · extends an existing modelcomponent_in_multiple_boms
  • mrp.bom.component.mass.change · new modelbom_ids (Bills of Materials), change_type, component_id (Component to Change), new_product_qty (New Quantity), component_locked, new_component_id (New Component)

Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/manufacture.

terminal Installation and usage

OCA documentation · Odoo 17.0

You can open the wizard in two ways.

From a bill of materials component line:

  • Go to Manufacturing -\> Products -\> Bills of Materials and open a bill of materials.
  • On the component line you want to change, click the Mass Change Component button (exchange icon). The button is only shown when the component is used in more than one bill of materials. The component to change is fixed to the one of the line.
  • In the wizard, review the bills of materials that use the component and keep selected only the ones you want to update.
  • Choose Replace and set the new component and the new quantity, or choose Remove to delete the component from the selected bills of materials.
  • Click Apply.

From the Manufacturing -\> Operations -\> Mass Change BoM Component menu, the wizard opens with no component preselected, so you can freely choose any component to change and then follow steps 3 to 5 above.

When replacing, the bills of materials that already contain the new component are automatically removed from the list, so no duplicated component lines are created. The new quantity is mandatory and is applied to every updated line.

The wizard is also available from any bill of materials components list view (e.g. the one provided by the module mrp_bom_component_menu) through the Actions menu.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.