MRP Production Check BoM Alignment
mrp_production_check_bom_alignment · OCA/manufacture
Health
60/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-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 checks that a Manufacturing Order's components, by-products, and operations are consistent with its current Bill of Materials.
Eight alignment checks are performed:
- Components — the set of BoM lines linked to the MO's raw moves matches the BoM exactly (no added or removed lines).
- Operations — the set of operations in the MO's work orders matches the BoM's operation list exactly.
- Work order name and work center — each work order's name and work center match its operation in the BoM (an alternative work center of the operation is accepted).
- Component quantities — each raw move's demand quantity matches the BoM line quantity scaled to the MO production quantity.
- Consumed in Operation — each raw move's operation (recorded on the move when the MO was created) matches the current "Consumed in Operation" defined on its BoM line.
- By-products — the set of BoM by-products linked to the MO's finished moves matches the BoM exactly (no added or removed by-products).
- By-product quantities — each by-product move's demand quantity matches the BoM by-product quantity scaled to the MO production quantity.
- Produced in Operation — each by-product move's operation matches the current "Produced in Operation" defined on its BoM by-product.
When a misalignment is detected:
- A warning banner is shown at the top of the Manufacturing Order form for any MO that is not yet done or cancelled.
- When confirming a misaligned MO, a dialog is shown giving the user the choice to fix it, go back or confirm it anyway.
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_production_form_view_check_bom_alignment |
mrp.production.form.check.bom.alignment | mrp.production | form | Inherits mrp.mrp_production_form_view |
view_mrp_bom_alignment_warning_form |
mrp.bom.alignment.warning.form | mrp.bom.alignment.warning | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (3)
-
mrp_production_countIntegercompute='_compute_mrp_production_count' -
mrp_production_idsMany2many → mrp.productionargs: 'mrp.production' -
mrp_production_namesCharcompute='_compute_mrp_production_count'
-
action_confirm_anyway(self) -
action_update_and_confirm(self)
New fields (1)
-
bom_alignment_warningCharcompute='_compute_bom_alignment_warning'
-
action_confirm(self)