Purchase and Subcontracting Management
mrp_subcontracting_purchase · OCA/manufacture
mrp_subcontracting_resupply_link (15.0)OCA/manufacture 14.0 → odoo/odoo 15.0–20.0
-
Security25/25No findings
-
Activity0/25Last human commit 37 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
po_form_mrp_subcontracting_purchase— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcestock_picking_form_mrp_subcontracting— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This bridge module adds some smart buttons between Purchase and Subcontracting
DISCLAIMER: This module is a backport from Odoo SA and as such, it is not included in the OCA CLA.
That means we do not have a copy of the copyright on it like all other OCA modules.
This is a backporting of features from mrp_subcontracting modules from v15 allowing to setup a flow addressing the following use case:
Vendor 1 manufactures and sells “Finished Product”
Vendor 2 manufactures and sells “Component Product” (used to manufacture “Finished Product”)
Vendor 3 sells “Element Product” (used to manufacture “Component Product”)
As an example, in the case where there is no available qty for each of these three products, creating a PO purchasing “Finished product” for Vendor 1 generates:
- The standard receipt picking from Vendor 1 to our warehouse
- A PO for Vendor 2 for product “Component Product”
- A subcontracting order for Vendor 1 for “Finished Product”, with component location: Vendor 1 subcontracting location
Once this PO is confirmed, this generates:
- A dropship picking for Vendor 1 from Vendor 2 for “Component Product”
- A subcontracting order for Vendor 2 for “Component Product”, with component location: Vendor 2 subcontracting location
- A PO for Vendor 3 for product “Element Product”
Once this PO is confirmed, this generates:
- A dropship picking for Vendor 2 from Vendor 3 for “Element Product”
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 |
|---|---|---|---|---|
po_form_mrp_subcontracting_purchase |
purchase.order.inherited.form.mrp.subcontracting.purchase | purchase.order | form | Inherits purchase.purchase_order_form |
stock_picking_form_mrp_subcontracting |
stock.picking.inherited.form.mrp.subcontracting | stock.picking | form | Inherits stock.view_picking_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 9
-
subcontracting_has_been_recordedBooleancopy=False args: 'Has been recorded'
-
subcontracting_record_component(self)Returns subcontracting issues Since we don't have a subcontracting_has_been_recorded field in version 14.0, we need to add functionality related to this field
-
subcontracting_resupply_picking_countIntegercompute='_compute_subcontracting_resupply_picking_count'help='Count of Subcontracting Resupply for component' args: 'Count of Subcontracting Resupply'
-
action_view_picking(self) -
action_view_subcontracting_resupply(self)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
create_missing_subcontracting_dropshipping_rules(self)@api.modelAdds new stock rules for missing subcontracting dropshipping
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
-
subcontracting_source_purchase_countIntegercompute='_compute_subcontracting_source_purchase_count'help='Number of subcontracting Purchase Order Source' args: 'Number of subcontracting PO Source'
-
action_view_subcontracting_source_purchase(self)Returns action for subcontracting source purchase
No new fields.
Public methods (0)No public methods.
-
subcontracting_dropshipping_pull_idMany2one → stock.ruleargs: 'stock.rule', 'Subcontracting-Dropshipping MTS Rule' -
subcontracting_dropshipping_to_resupplyBooleandefault=Truehelp='Dropship subcontractors with components' args: 'Dropship Subcontractors'
No public methods.