MRP BoM Component Mass Change
mrp_bom_component_mass_change · OCA/manufacture
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module allows you to add, 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.
The wizard can also add the same component to several bills of materials at once. The bills of materials can be selected freely, or filtered by the ones already using a given component; those that already contain the component to add are excluded, so no duplicated lines are created.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
mrp_bom_component_mass_change_view_form |
mrp.bom.component.mass.change.form - mrp_bom_component_mass_change | mrp.bom.component.mass.change | form | New |
mrp_bom_form_view |
mrp.bom.form - mrp_bom_component_mass_change | mrp.bom | form | Inherits mrp.mrp_bom_form_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
bom_domainCharcompute='_compute_bom_domain' -
bom_idsMany2many → mrp.bomcompute='_compute_bom_ids'readonly=Falsestore=Truestring='Bills of Materials' args: 'mrp.bom' -
change_typeSelectiondefault='replace'required=True args: [('replace', 'Replace'), ('remove', 'Remove'), ('add', 'Add')] -
component_idMany2one → product.productstring='Component to Change' args: 'product.product' -
component_lockedBooleandefault=False -
new_component_idMany2one → product.productstring='New Component' args: 'product.product' -
new_product_qtyFloatdefault=1.0digits='Product Unit'string='New Quantity'
-
action_apply(self) -
default_get(self, fields_list)@api.model
No new fields.
Public methods (1)-
action_bom_component_mass_change(self)
Loading…