Sale MRP BOM
sale_mrp_bom · OCA/sale-workflow
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 12.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
AGPL-3
No conflicts with its dependencies
Folder size
0.23 MB
Module directory on disk
Code analysis
0 migration notes
4 models
2 views
0 HTTP endpoints
Description
This modules allows to specify a Bill Of Materials directly inside a sale order line. It is specially useful to select alternative manufacturing and sub-contracting routings.
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 |
|---|---|---|---|---|
sale_order_form |
sale_mrp_bom.sale.order.form | sale.order | form | Inherits sale.view_order_form |
sale_order_line_tree |
sale_mrp_bom.sale.order.line.tree | sale.order.line | tree | Inherits sale.view_order_line_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
bom_idMany2one → mrp.bomcomodel_name='mrp.bom'domain="[('product_tmpl_id.product_variant_ids', '=', product_id),'|', ('product_id', '=', product_id), ('product_id', '=', False)]"string='BoM'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
run(self, procurements, raise_user_error=True)@api.modelHandle phantom BoM (kit) procurements linked to sale order lines. If a procurement is for a kit product associated with a sale order line, this method explodes the kit into its components and generates new procurements for those components. Original procurements that are not kits, or not linked to a sale order line with a phantom BoM, are passed through. :param procurements: A list of Procurement namedtuples :param raise_user_error: Whether to raise UserError on failure :return: Result of the original run method
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…