Link Purchase Order Line to Subcontract Productions
This module does the following:
- Extends _prepare_subcontract_mo_vals() and adds the purchase order line reference to the subcontracted manufacturing orders.
- Adds an action button in the purchase order form view to open related subcontracted manufacturing orders.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Links subcontracted manufacturing orders to the purchase order line that triggered them, so you can see and open the related productions directly from the purchase order.
When you buy a product that is manufactured by a subcontractor, Odoo creates a manufacturing order for that product. This module records which purchase order and which purchase order line caused that manufacturing order, so the link is not lost.
On the purchase order form, a new button with a wrench icon appears in the button box. It shows how many subcontracted manufacturing orders are linked to that purchase order. Clicking it opens the list of those manufacturing orders, or directly the single one if there is only one. The button is only visible to warehouse users and only when at least one production exists.
On the manufacturing order form, two new read-only fields appear for purchase users: the subcontract purchase order and the subcontract purchase order line. They are hidden when empty.
The module also fills in this link automatically when a subcontracting manufacturing order is created from a stock transfer, and it updates existing manufacturing orders when the module is installed, so past records are linked too.
It touches the purchase order, manufacturing order and stock transfer areas.
Depends on
Models and fields (3)
- stock.picking · extends an existing model
- mrp.production · extends an existing modelpurchase_line_id, purchase_order_id
- purchase.order · extends an existing modelsubcontract_production_ids, subcontract_production_count
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 7 confirmed, 2 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/manufacture.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.