Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 17.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 2 models 2 views 0 HTTP endpoints

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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
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

New fields (7)
  • bom_domain Char
    compute='_compute_bom_domain'
  • bom_ids Many2many → mrp.bom
    compute='_compute_bom_ids' readonly=False store=True string='Bills of Materials' args: 'mrp.bom'
  • change_type Selection
    default='replace' required=True args: [('replace', 'Replace'), ('remove', 'Remove'), ('add', 'Add')]
  • component_id Many2one → product.product
    string='Component to Change' args: 'product.product'
  • component_locked Boolean
    default=False
  • new_component_id Many2one → product.product
    string='New Component' args: 'product.product'
  • new_product_qty Float
    default=1.0 digits='Product Unit' string='New Quantity'
Public methods (2)
  • action_apply(self)
  • default_get(self, fields_list)
    @api.model

New fields (0)

No new fields.

Public methods (1)
  • action_bom_component_mass_change(self)

Loading…